How does that help? Why wouldn't I reference the Acl component inside my
current helper?
For clarity... the helper parses a config file an build up an menu that
contains one or many links - typically s into a . I want to be sure
that the current user has permissions for 'this' action before add
Thanks for reply but still won't work.
Question model:
>
> public $hasMany = array(
> 'Option' => array(
> ...
> 'dependent' => true
> )
> );
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/C
Hello Everyone,
I need to delete associated records.
I have tried but can't figure it out.
Here is my situation,
Database,
questions {id(pk), question, answer}
options {id(pk), question_id, option_value}
Models,
Question
..
public $hasMany = array( 'Option' => array('dependant' => true
Do you mean that you want to use check the user's permissions inside your
plugin's helper? In that case, I would write another helper that you can
use to check all of the ACL permissions.
On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote:
>
> I have a Navigation plugin that cont
Question model:
public $hasMany = array(
'Option' => array(
...
'dependent' => true
)
);
On Fri, Jan 11, 2013 at 4:03 AM, amitsukapure wrote:
> Hi,
> I have tried but still not working.
> My situation,
> Question hasMany Option
>
> Tables,
> questi
On Fri, Jan 11, 2013 at 9:38 AM, wrote:
> This is my first post so bare with me.
>
> How do you nest html helpers in cakePHP 2.x?
You need to get your terminology straight first. A "helper" is class
for creating or manipulating your view output. What you seem to be
asking is how to get the HtmlH
You'll need to create your own validation method.
http://book.cakephp.org/2.0/en/models/data-validation.html#custom-validation-rules
Personally, I'd create columns for both url and email in the table,
then set up a custom rule to check that either one is there, and that
whichever one is there is c
Yes, inside the Plugin directory. Where, as you see, it works.
On Thu, Jan 10, 2013 at 5:09 PM, mk wrote:
> Hi
>
> I’m using the cakedc users plugin in my app and have it working well. I’d
> like to extend it now and I have read through the readme “How to extend the
> plugin” https://github.com/C
Check permissions of your files. it should be set to "Read and Write"
On youtube, you could get some helpful videos on installing cake php on mac
On Thursday, 10 January 2013 18:59:45 UTC+5:30, Theresia Z wrote:
>
> I have a big problem with Cakephp. We installed it and built an
> application on
Hi,
I have tried but still not working.
My situation,
Question hasMany Option
Tables,
questions {id,question,answer}
options{id,option,question_id}
In QuestionsController , in delete menthod,
$this->Question->delete($id,true);
Everything works fine about association but not deletion.
Help me out
This is my first post so bare with me.
How do you nest html helpers in cakePHP 2.x?
Two examples:
- I'd like to have a logo as a link and apply an inline style to it.
- I'd like to have a link and wrap it in a $this-Html-div() helper
Thanks.
--
Like Us on FaceBook https://www.faceboo
I recognize this is an old thread, so I'm posting this answer here because
I had the same issue today, and couldn't find a solution anywhere.
I'll note I'm a relative novice to PHP.
I ran into this issue converting a Cakephp 1.2 app from Mysql to Postgres.
There are several instances of the "quer
Not sure how the elem method works but here's how to add an image:
set('channelData', array(
'title' => 'tet',
'link' => 'test',
'url' => 'test',
'description' => 'test',
'language' => 'en-us',
'managing-editor' => 'test',
));
foreach($posts
I was taking a look at the RssHelper file and there is case for "enclosure"
which is not documented but here's how it work:
set('channelData', array(
'title' => 'test',
'link' => 'test',
'url' => 'tes',
'description' => 'test',
'language' => 'en-us',
Aaaand it's up again :)
On Friday, January 11, 2013 10:39:46 PM UTC+1, sdc53 wrote:
>
> Just thought I'd let someone know, in case you didn't already.
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because
Just thought I'd let someone know, in case you didn't already.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email
Hello,
I want to perform conditional validation between two rules
public $validate = array(
'variable' => array(
'notEmpty' => array(
'rule' => 'notEmpty'
),
'url' => array(
'rule' => array('url', true),
'message' => 'Ple
I'm trying to add images to my rss feed and I'm assuming that it can be
done using the elem method of the rss helper but I don't know how to use
elem method properly. If images are add a different way then please explain
as well. This is my rss.ctp view file:
set('channelData', array(
'
I'm having the same issue. I'm assuming it can be done via elem method of
the Rss Helper class.
http://api20.cakephp.org/file/Cake/View/Helper/RssHelper.php# (scroll down
to the Rss helper class info). Here's what I have in my rss.ctp file but I
can't get the elem method to work properly:
set
No,
I've done that
Op donderdag 10 januari 2013 schreef euromark (dereurom...@gmail.com) het
volgende:
> You forgot the RequestHandler component, didnt you?
>
>
> Am Donnerstag, 10. Januar 2013 17:19:15 UTC+1 schrieb Dr. Drijk:
>>
>> I'm using the CakePdf-plugin to parse a view as pdf.
>>
>> I ad
make sure you are in the 'app' directory then run cake bake...it happens
sometimes...
On Sunday, January 6, 2013 8:08:07 AM UTC-5, Olufemi Oluoje wrote:
>
> Pls can anyone send me the link of how to bake cake 2.4. Because I have
> been having issues, due to change in the folder structure from 1.
Just an fyi for anyone who may have an issue in 2.x when viewing a
pr($this->Model->find('all'); from the pages controller, make sure that
first letter is capitalized (which is what you should be doing anyway).
lol I spent a few minutes trying to find out why the heck none of the
relations we
Make sure your .htaccess files all copied over correctly. This happens
alot on macs if you dont have it set up for hidden files
On Thursday, January 10, 2013 8:29:45 AM UTC-5, Theresia Z wrote:
>
> I have a big problem with Cakephp. We installed it and built an
> application on windows, everyth
kudos
On Tuesday, January 8, 2013 9:42:28 PM UTC-5, Andras Kende wrote:
>
>
> http://book.cakephp.org/2.0/en/models/model-attributes.html#primarykey
>
> app/Models/User.php :
>
> class User extends AppModel {
> public $primaryKey = 'users_id';
> }
>
>
> Andras Kende
> http://www.kend
On Sunday, 6 January 2013 14:08:07 UTC+1, Olufemi Oluoje wrote:
>
> Pls can anyone send me the link of how to bake cake 2.4. Because I have
> been having issues, due to change in the folder structure from 1.3 to 2.x.
> Pls, anyone link to a tutorial? Or pasting it here.
> Am baking my cakephp
On Thursday, 10 January 2013 19:55:49 UTC+1, Khaled Attia wrote:
>
> Hello,
>
> I'm going to create API provider for my application, and I don't want to
> split the API from the main app because there is a lot of tables relations
> in models and components and other stuff that I want to use wit
On Thursday, 10 January 2013 14:29:45 UTC+1, Theresia Z wrote:
>
> I have a big problem with Cakephp. We installed it and built an
> application on windows, everything worked fine. Then I installed Cakephp on
> two other windows-computers and copy-pasted the app-Data, it worked. Now I
> tried
On Thursday, 10 January 2013 09:16:13 UTC+1, Raju Bishnoi wrote:
>
> Hi,
>
> I run the below php code with Mongo & MongoClient to insert 100k records.
> Mongo took 70-75 second to complete and MongoClient took 440-450 second.
>
> $start = microtime(true);
>
> $objBaseMongoRecord = new BaseMongoRe
I think is paginate name for property, not paginator
Dne 11. jan. 2013 11:15 je "Sam" napisal/-a:
> Dear CakePHP experts,
>
> The default maxLimit for Paginator component is 100. For some reason, I
> would like to extend it to 1000 to all my controllers. What I did was to
> add the following code
Dear CakePHP experts,
The default maxLimit for Paginator component is 100. For some reason, I
would like to extend it to 1000 to all my controllers. What I did was to
add the following code inside class AppController. Is it correct?
Inside class AppController extends Controller,
*public $pagi
30 matches
Mail list logo