different to the default 404 when an error happens, you should call
$this->render('some_error') or something like that.
On Wed, Jan 26, 2011 at 9:44 AM, Joshua Muheim wrote:
> Thanks for your reply, Steve. I have created app/app_controller.php
> with the following content:
>
>
like that. I didn't experience this problem so far, but be warned!
On Thu, Dec 2, 2010 at 12:47 PM, Joshua Muheim wrote:
> Thanks for pointing me into the right direction! :-)
>
> On Thu, Dec 2, 2010 at 11:56 AM, Amit Badkas wrote:
>> Hi,
>> Controller does merging of
Oops, my bad, wrong behavior (although the mentioned one is quite
useful, too). Here's the correct one:
Automatically verify foreign keys in CakePHP: http://josh.ch/wordpress/?p=63
On Thu, Feb 24, 2011 at 5:33 PM, Joshua Muheim wrote:
> I have added this behavior to my Subversion reposi
I have added this behavior to my Subversion repository and created a
small blog article about it... I hope someone finds this useful.
Automatically prevent records with depending children from being deleted:
http://josh.ch/wordpress/?p=80
On Fri, Nov 5, 2010 at 9:46 AM, Joshua Muheim wrote
Just in case somebody is interested... I have added a small method
data() that works a little nicer in my opinion than the standard way
of accessing the data array's values is...
So instead of $this->Model->data['User']['name'] you can just call
$this->Model->data('name')... saves you a few keystr
ebody else will find this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.
On Mon, Oct 18, 2010 at 9:43 AM, Joshua Muheim wrote:
> Thanks, guys! I will take a look at these links.
>
> On Fri, Oct 15, 2010 at 1:28 PM, euromark wrote:
>> this is
d this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.
On Fri, Sep 17, 2010 at 11:52 AM, Joshua Muheim wrote:
> Your link looks very interesting. I will take a look at it. Thanks!
>
> On Thu, Sep 16, 2010 at 10:10 PM, euromark wrote:
>> ther
hope somebody else will find this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.
On Thu, Oct 14, 2010 at 11:28 AM, Joshua Muheim wrote:
> OK, I slightly updated the post and corrected the download link.
> Please, give it a try! :-)
>
> On T
n Tue, Oct 19, 2010 at 4:15 PM, Joshua Muheim wrote:
> So it seems there's no such functionality yet? I will try to create a
> component or something for this...
>
> On Thu, Sep 16, 2010 at 12:17 PM, Jeremy Burns | Class Outfit
> wrote:
>> Go directly to the source; use
I managed to work out a solution for this, and I released it as a
library so everyone can use it. I've written in my blog about it.
- Why web tests using the development database are a bad thing:
http://josh.ch/wordpress/?p=8
- Finally: use fixtures with your CakePHP web tests!:
http://josh.ch/wor
sh.ch/wordpress/?p=71
I hope somebody else will find this useful. :-) Please leave a message
if you try it... I'm happy to optimize it further.
On Mon, Sep 6, 2010 at 2:30 PM, Joshua Muheim wrote:
> Thank you, but this looks like an article that only tells how to use
> fixtures with unit
> However, I do think you should pick some of your words a little bit more
> carefully, you are talking as if PHP is a lesser language and restrictive
In fact - I do, yes. ;-) But Ruby has adopted quite some patterns and
features of PHP, so PHP isn't all bad. ;-)
(Don't take me too serious, please
Thanks for your thoughts and explanations, AD.
On Wed, Feb 2, 2011 at 10:02 AM, AD7six wrote:
> I think you're the first person to notice it and not think "oh, 2 secs
> of editing and I can work on the next part of my problem".
I guess you're right, I would have saved a lot of time already if I
Thanks Jamie for your interesting thoughts.
On Tue, Feb 1, 2011 at 8:05 PM, Jamie wrote:
> And since extending controllers beyond the AppController
> relationship isn't really in the docs and not the "official" way to do
> things, there probably hasn't been much impetus to change the
> behavior.
Maybe this is even better:
Up to 25'000
Up to 35'000
... :-)
On Tue, Feb 1, 2011 at 5:37 PM, Joshua Muheim wrote:
> Off-topic, but maybe important once in a while: you should provide
> disjunctive options in a selectbox:
>
> 15'000 - 24'999
> 25'000 -
Off-topic, but maybe important once in a while: you should provide
disjunctive options in a selectbox:
15'000 - 24'999
25'000 - 34'999
etc. More user friendly could be:
< 25'000
< 35'000
...or something like that. :-)
On Tue, Feb 1, 2011 at 5:19 PM, LipeDjow wrote:
> The same way if you were
Thanks for your support, Ryan. It's a relief to hear I'm not the only
one facing these unexpected challenges with CakePHP.
Let's see whether this discussion gives some enlightment... :-)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakeP
Thanks, guys (especially to Tilen for his constructive feedback on my
posting habits ;-) ).
It seems to me I often run into limitations of CakePHP that I hope I
can't be the only one who faced them yet and that there's a well known
work-around already. In fact, I often seem to be the only person
You should check first whether your $someone array has a key "User"
before trying to access it:
http://php.net/manual/en/function.isset.php
This is a PHP issue, not a CakePHP one. :-)
On Mon, Jan 31, 2011 at 9:07 AM, sadeepap wrote:
> Hi ,
>
> I am a new comer to Cake and has the following erro
I think I don't really understand your answer. :-)
In views I can use $this->element(...), and I'd like to call this
function in a helper's method... at the time being, I pass $this to
the method:
// View
echo $this->MyHelper->element($paras..., $this);
// Helper
function element($params..., &$v
wrote:
>
>
> On Jan 28, 11:01 am, Joshua Muheim wrote:
>> Should it? I guess this only works specifically for me and my
>> german-needs, and wouldn't be of any sense for the whole project?
>
> You see no point in submitting patches which correct __(sprintf( to
&g
Oh, but another question: I'd like to make use of the elements()
method within my helper. This doesn't seem to be possible...?
On Fri, Jan 28, 2011 at 2:50 PM, Joshua Muheim wrote:
> Oooops, my bad! Just found it out myself... Why didn't I see this
> before? I definitely
Oooops, my bad! Just found it out myself... Why didn't I see this
before? I definitely thought about it and tried it out... must have
made a slip... I'm sorry. :-)
On Fri, Jan 28, 2011 at 2:32 PM, Jeremy Burns | Class Outfit
wrote:
> Check for $this->params in the helper.
>
> Jeremy Burns
> Class
Should it? I guess this only works specifically for me and my
german-needs, and wouldn't be of any sense for the whole project?
On Fri, Jan 28, 2011 at 10:50 AM, AD7six wrote:
>
>
> On Jan 27, 1:24 pm, Joshua Muheim wrote:
>> Thank you, Ryan. I know the "problem&quo
Thank you, Ryan. I know the "problem" of the 3 different "the" in
german. I'm from Switzerland... ;-)
Anyway, there are some workarounds you can take... e.g. instead of
using "Der/die/das Buch wurde gespeichert." you can simply use "Buch
wurde gespeichert.". Not that very nice, but all correct. Bu
Hey Narendra
I guess you are very new to CakePHP? .ctp extensions are never shown
to the end user, they are only used by CakePHP internally.
I guess you should take a look at the CakePHP book first...
http://book.cakephp.org/view/1078/Views
Have fun!
On Thu, Jan 27, 2011 at 10:32 AM, Narendra P
Thanks for your reply, Steve. I have created app/app_controller.php
with the following content:
_outputMessage('error500');
}
}
?>
But it still doesn't work, although the AppError handler is taken into
account: when placing a die("hello"); into the error500() method, then
having DEBUG set to 2
I have problems understanding your question. If you have a date field in
your model, then $this->Form->input('date') should result in a day select
box, a month select box and a year select box. If you have a datetime field,
then it should also result in hour/minute/second select boxes.
You can als
Oh, and it seems "uses('L10n');" is also not needed?
On Mon, Jan 24, 2011 at 12:06 PM, psybear83 wrote:
> Hey everybody
>
> I'm currently doing l10n for my web. I have browsed through some
> articles, and their alltogehter-verdict was:
>
> - Put "uses('L10n');" into your AppController.
> - Put "C
Thanks for testing it, Andy!
I used CakePHP 1.3.6, and now I upgraded to CakePHP 1.3.7 - and now it
works again! But on friday it also worked on the old version, and I
can't remember any significant change that could have stopped it from
working! Hell - strange...!
Anyway, it's working again. :-)
Nobody's got an idea? :-( This is quite frustrating.
On Fri, Jan 21, 2011 at 10:24 AM, psybear83 wrote:
> Hey everybody
>
> I never had to deploy a CakePHP app to a production server before, and
> now I'm a bit stuck.
>
> While my app works like a snap on my development machine, URL
> rewriting d
Interesting point! At the moment I don't have any such features, so I
guess I remove my $whitelists and think about this as soon as
required. :-)
Have a nice weekend, Mark!
On Fri, Jan 21, 2011 at 4:22 PM, euromark wrote:
> yes, that should be enough :)
>
> but what about ajax forms or dynamical
Thank you! After some months of working with CakePHP I now really like
the framework. :-)
I'm looking forward to 2.0! Keep up the nice work!
On Thu, Jan 20, 2011 at 7:22 AM, keymaster wrote:
>
> Firstly, Mark - a tremendous thank you and feelings of admiration for
> your tremendous skills, good
Thank you, Amit. I remember having noticed that, and then it didn't
work, probably because of something else... And then I forgot again.
;-)
Thanks anyway!
On Thu, Jan 20, 2011 at 4:48 AM, Amit Badkas wrote:
> Hi,
> Form helper's select() method needs attributes as 4th argument and not 3rd,
> so
Thanks, but I should have said that I'm creating form elements *not*
for a model.
On Wed, Jan 19, 2011 at 2:59 PM, euromark wrote:
> sry, i meant $this->Form->input() ^^
>
>
> On 19 Jan., 14:27, psybear83 wrote:
>> Hey everybody
>>
>> This is a very basic one, but I'm just not getting it, and it
Thank you, Mark!
On Tue, Jan 18, 2011 at 3:00 PM, mark_story wrote:
> Indented code blocks don't work. You need to use fenced code blocks.
>
> {{{
> This should be code
> }}}
>
> -Mark
>
> On Jan 13, 4:22 am, Joshua Muheim wrote:
>> And another question:
&
o force oneself to
learn about clean coding and leave old "dirty" roads... :-)
I can suggest to everyone to use api generator, it is a very useful tool.
On Mon, Jan 17, 2011 at 4:54 PM, Joshua Muheim wrote:
> Thanks, Mikek, this already helps a lot!
>
> On Mon, Jan 17, 2011 a
> mine is below:
>
> [exclude]
> properties = private
> methods = private
> directories = webroot, tmp, static, locale, vendors, .svn, plugins
> files = index.php, empty
>
> I dont know the answers to your other questions.
>
> regards
> mikek
>
>
>
>
Isn't there anybody using ApiGenerator?
On Thu, Jan 13, 2011 at 11:28 AM, Joshua Muheim wrote:
> Another one:
>
> I have constants in my classes like so:
>
> /**
> * Grenze, nach welchem Lebensjahr der Zivi höchstens noch 26
> Diensttage pro Folgejahr bis
Some time ago, I looked into this web stress tool:
http://www.paessler.com/webstress
Quite nice, but I don't have much experience with stress testing, so I
can't tell you whether it is a very good solution.
On Fri, Jan 14, 2011 at 2:08 AM, Dave Maharaj wrote:
> Not so much related to Cake but I
n the documentation. Is this
normal? Aren't constants added to the API documentation?
On Thu, Jan 13, 2011 at 10:22 AM, Joshua Muheim wrote:
> And another question:
>
> I'd like to have code examples in my method descriptions. I know that
> I can put them into back ticks for inline
And another question:
I'd like to have code examples in my method descriptions. I know that
I can put them into back ticks for inline code, but it seems I can't
create blocks of code using 4 spaces?!
/**
* Constructor.
*
*This should be code
*/
Thanks for informations.
On Thu,
gt;> > > > > your
>> > > > > app directly and debug when there's errors on it? I've been doing
>> > > > > like
>> > > > > this so far.. But I wonder if I should change that habit.
>> >
>> > > > > O
Dear netusco
I know exactly what you mean - most CakePHP tutorials about testing
aren't that great; they expect you already have plenty of ideas on why
testing is good, and they only explain how in theory you can use the
SimpleTest library to test your CakePHP apps the same way you have
already te
OK, workaround:
$this->assertEqual($x->format('%Y-%D-%M-%I-%S', $y->format('%Y-%D-%M-%I-%S');
On Thu, Jan 6, 2011 at 2:21 PM, psybear83 wrote:
> After debugging for 2 hours or so, I finally found the problem why my
> tests work (but shouldn't)...
>
> $x = new DateInterval('P36Y');
> $y =
Alright, I found it, I have to access
myapp.localhost/api_generator/api_classes. Thanks.
On Thu, Jan 6, 2011 at 1:00 PM, AD7six wrote:
>
>
> On Jan 6, 10:01 am, Joshua Muheim wrote:
>> Nobody has an idea? I admit I haven't looked too deep into plugins and
>> how they w
@ John:
No no, I know that this wouldn't be the right place. :-) It's just
that I want to exhaust all the standard possibilities for
documentation that are built into cakephp, so that a later developer
will be able to easily manage my codes.
On Thu, Jan 6, 2011 at 12:30 PM, John Andersen wrote:
w?
On Wed, Jan 5, 2011 at 10:34 AM, Joshua Muheim wrote:
> OK, I downloaded the plugin, placed it in app/plugins/api_generator,
> and run the installation tutorial. The two tables have been created
> and populated with some stuff. But now I don't know how to open the
> API. I gues
found.
Thanks for any hints pointing me to the right direction. :-)
On Tue, Jan 4, 2011 at 4:43 PM, Joshua Muheim wrote:
> ah, right, just noticed it. but thanks for pointing me to it! :-)
>
> On Tue, Jan 4, 2011 at 4:42 PM, wrote:
>> hi josh
>>
>>> Thanks, I wil
luded once you add
> them to the $helpers, $components array, etc. A great example is the
> CakeDC utils plugin: https://github.com/CakeDC/utils
>
> On Jan 4, 7:42 am, Joshua Muheim wrote:
>> @Mark: this does seem very pragmatic. But what if you want to provide
>> you
ery single file?
Maybe soft links are the solution? Can SVN/GIT manage something like that?
On Tue, Jan 4, 2011 at 4:14 PM, euromark wrote:
> yep,
> i use a "tools" plugin containing all those files
> one "svn:external" for all :)
>
> On 4 Jan., 13:24, Joshua Muh
ah, right, just noticed it. but thanks for pointing me to it! :-)
On Tue, Jan 4, 2011 at 4:42 PM, wrote:
> hi josh
>
>> Thanks, I will take a look at your API generator.
>
> i cant take any credit for the api_generator. its the one used to make
> api.cakephp.org
>
> a joy to use.
>
>> On Tue, Ja
Thanks, I will take a look at your API generator.
On Tue, Jan 4, 2011 at 4:12 PM, wrote:
>> Hey everybody
>>
>> I have to start a small CakePHP application from scratch. I want to do
>> this in a highly professional way, which also means that I want to
>> properly document the project.
>>
>> Bes
I don't know this plugin, but this sounds to me like your database
tables does not have a username column...?
On Tue, Jan 4, 2011 at 2:20 PM, John Maxim wrote:
> Hi people,
>
> I installed this :
>
> https://github.com/CakeDC/comments
>
> I am having problem with:
> Notice (8): Undefined index: u
Short answer! I will look into it. Thanks. :-)
On Tue, Jan 4, 2011 at 1:12 PM, AD7six wrote:
>
>
> On Jan 4, 12:33 pm, psybear83 wrote:
>> Hey everybody
>>
>> I wonder how to structure my shared components, behaviors, plugins
>> etc. in my Subversion repository? I include them as externals in ma
Thanks, cricket. I'm not sure but I believe Ruby On Rails created an
additional hidden input field to surpass this
"specification/limitation"; so when there's no value selected in the
dropdown, the hidden field's empty value was sent, and when a value
was selected, it oversteered the hidden field's
I don't know if that's your question, but yes you need to create a
files app/controllers/app_controller.php; you should NEVER change
anything in the cake directory, so leave the
cake/libs/controller/app_controller.php file alone.
CakePHP will find your own app_controller.php file and load it inste
Thanks a lot! I'll have to think more about using the recursive option
in the future, I guess, anyway... :-)
On Fri, Dec 17, 2010 at 6:17 AM, Amit Badkas wrote:
> Hi,
> By default, find('list') sets recursion to -1. That's why you need to set
> 'recursive' => 0 in the options array, something lik
Interesting topic.
On Wed, Dec 15, 2010 at 12:18 AM, Larry E. Masters wrote:
> You can look at the current guides being
> written for 2.0 and go from there. Just build your application using PHP 5
> features only.
What guides do you mean? Is there a CakePHP 2.0 guides collection
somewhere? Link
You're welcome!
On Wed, Dec 15, 2010 at 6:04 AM, huoxito wrote:
> great!
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To pos
I guess so... Because of this I hoped there's a way to sneak it right
into AppModel automatically... ;-)
On Wed, Dec 15, 2010 at 12:13 AM, euromark wrote:
> and I would only do that if necessary
> lazyloading attachments so to speak
> probably cuts down the memory
>
>
> On
PDF:
http://hotfile.com/dl/89428716/225a271/using-reusing-plugins-100904101846-phpapp01.pdf.html
PPT:
http://hotfile.com/dl/89428946/9e73d67/using-reusing-plugins-100904101846-phpapp01.ppt.html
On Tue, Dec 14, 2010 at 5:06 PM, Joshua Muheim wrote:
> Doing it right now... :-)
>
> On Tu
Doing it right now... :-)
On Tue, Dec 14, 2010 at 4:08 PM, keymaster wrote:
> Pierre Martin's: "Using and Reusing Plugins", given at cakefest.
>
> http://www.slideshare.net/real34/using-reusingplugins
>
> I tried downloaded it for reference and later re-viewing, but alas, it
> is encoded as an Ap
;Controller->MyModel->Behaviors->attached('MyBehavior');
>> code to check if a particular behavior attached to a particular model or not
>>
>> Amit Badkas
>>
>> PHP Applications for E-Biz:http://www.sanisoft.com
>>
>>
>>
>>
uld even create a component and pass a "whitelist" of valid field
> names
> this way you can use the code in several controllers and actions :)
>
>
> On 14 Dez., 08:49, Joshua Muheim wrote:
>> Thanks for this nice hint, Mark. I'll place it there. :-)
>>
>
Oh, and another question: should I check whether the model has already
the behavior XYZ attached before trying to attach it? (I'm using many
behaviors in different plugins etc., so it could happen that a
behavior is attached more than once.)
On Tue, Dec 14, 2010 at 11:11 AM, psybear83 wrote:
> He
Looks interesting! I will take a look at it, thank you AD!
On Mon, Dec 13, 2010 at 10:17 PM, AD7six wrote:
> Why don't you just bind the association.
> $this->bindModel(array('belongsTo' => array('Post' => array(.. any thing or
> nothing ..;
> and use recursive of 0.
> A lot simpler imo.
> AD
Thanks for this nice hint, Mark. I'll place it there. :-)
On Tue, Dec 14, 2010 at 12:19 AM, euromark wrote:
> you should do that in the action
> in the else part of if (!empty($this->data)):
>
> http://www.dereuromark.de/2010/10/07/cakephp-beginner-tips/
>
>
> On 13 Dez., 16:59, psybear83 wrote:
Thanks, this hint helped a lot! :-)
On Mon, Dec 13, 2010 at 4:58 PM, nachopitt wrote:
> Try using $this->recursive = -1; before executing the finder.
>
> On 13 dic, 05:33, Joshua Muheim wrote:
>> It's getting better... It now returns the correct count with the followin
posts ON (`MetaTag`.`post_id` = 'Post.id') LEFT JOIN `posts` AS
`Post` ON (`MetaTag`.`post_id` = `Post`.`id`) WHERE `MetaTag`.`id` =
'1601' AND `Post`.`user_id` = 1103
Is this normal? What's it for?
On Mon, Dec 13, 2010 at 10:01 AM, Jeremy Burns | Class Outfit
wrote:
> C
>>
>> $this->find(
>> 'count',
>> array(
>> 'joins' => array(
>> array(
>> 'alias' => 'Post',
>> 'table' => 'posts',
>>
Or put it into your libs directory and load it using
App::import('lib', 'MyClass/my_class') which will load
libs/my_class.php in both cases (even if my_class.php is in a subdir
of libs).
On Tue, Dec 7, 2010 at 6:19 AM, CyberSprinters wrote:
> If you want to use a class, you can simply use it as a
I'm using the bakery (you mean the cake bake command line, do you?) at
the beginning of projects... afterwards I'm normally faster just
copy/pasting the files I need... I suggest you learn using it, because
in the beginning it's quite useful to get working code from which you
can learn a lot. And b
Thanks, but while hoping that DRY and convention over configuration
would apply here too, adding these informations still results in an
invalid SQL statement:
SELECT COUNT(*) AS `count` FROM `meta_tags` AS `MetaTag` Post posts
left LEFT JOIN `posts` AS `Post` ON (`MetaTag`.`post_id` =
`Post`.`id`)
whole column.
>
>
> On 7 Dez., 16:53, Joshua Muheim wrote:
>> OK, thought a bit more about this topic. What about when a User has
>> two UserProfile records in the database table pointing at him? In this
>> case, CakePHP simply seems to take the first one and ignores the
&g
ue, Dec 7, 2010 at 4:53 PM, Joshua Muheim wrote:
> OK, thought a bit more about this topic. What about when a User has
> two UserProfile records in the database table pointing at him? In this
> case, CakePHP simply seems to take the first one and ignores the
> second.
>
> But some
UserProfile's table, and not in the User's table?
Instead of Users.user_profile_id, we could use UserProfiles.user_id?
This way there could really only one UserProfile record belong a User
record...?
On Tue, Dec 7, 2010 at 2:38 PM, Joshua Muheim wrote:
> Thanks, guys. :-)
>
> On Tue, Dec
Thanks, guys. :-)
On Tue, Dec 7, 2010 at 2:03 PM, euromark wrote:
> i did it the same way
> I just named it "UserInfos" :)
>
> but the relation can be 0 or 1 - so thats absolutely fine
>
> On 7 Dez., 12:09, Bogdan Bursuc wrote:
>> No it's fine.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 7, 2010 a
Funny, I first learned Ruby On Rails, too, and then dove into CakePHP
(because at my current job they don't know anything about a
programming language called Ruby... sadly). I first had quite some
struggles because I was used to the comfort of RoR and really missed
some stuff in CakePHP, but now I
I have stopped working without a framework in the background years
ago, and I only can recommend it. There's SO much stuff you don't even
know about that's handled by a good framework in the background (all
sorts of hacking-attempts is taken care of, for example), and with a
good plugin system your
Thanks, Mark! I know that it's not supposed to be used in that way,
but I have my reasons why I'm asking it.
I noticed that I can unset keys in the
Controller::viewVars['scaffoldFields'] variable to get what I want.
On Thu, Dec 2, 2010 at 3:28 PM, euromark wrote:
> in this case use "bake" script
Thanks for pointing me into the right direction! :-)
On Thu, Dec 2, 2010 at 11:56 AM, Amit Badkas wrote:
> Hi,
> Controller does merging of 'uses', 'helpers' and 'components' only by
> default, please have a look at __mergeVars() method in
> cake/libs/controller/controller.php
> Amit Badkas
> PHP
(which unfortunately doesn't work well with multiple models
>> and saveAll) as a last line of defense in case something goes wrong
>> and a modified request slips through.
>>
>> Regards
>>
>> Joshua Muheim schrieb:
>>
>>
>>
>>
>>
&
Thanks for the hint to the $whitelist, Stephen. But this seems not
necessary to me anymore when using the Security component (which I do
and I forgot to mention in my first post). Look at this
(http://book.cakephp.org/view/175/Security-Component):
"When using the Security Component you must use th
thanks, odd. Anyone else has an opinion on an upload thingie? :-)
On Thu, Nov 25, 2010 at 10:00 AM, odd
wrote:
> I'm using David Perssons Media Plugin because it is very flexible,
> makes media modification/conversion (thumbnails, compression, type
> conversion, etc..) simple, is easy to extend,
Internet Explorer is known to be very buggy in such things. Can you
post the HTML source code?
On Tue, Nov 23, 2010 at 7:57 PM, cricket wrote:
> On Tue, Nov 23, 2010 at 6:10 AM, Master Ram wrote:
>> Hi.. all
>>
>> I have problem with IE drop down menu.
>>
>> i have inserted one element its store
Thank you, Majna!
On Tue, Nov 23, 2010 at 10:17 PM, majna wrote:
> if ($this->MyModel->Behaviors->attached('Translate'))
>
> http://api13.cakephp.org/class/behavior-collection#method-BehaviorCollectionattached
>
> On Nov 23, 3:09 pm, Joshua Muheim wrote:
>
Oh, and is there a standard way to check whether a behavior is loaded?
E.g. when creating behaviors that are depending on other behaviors?
Thanks,
Josh
On Tue, Nov 23, 2010 at 3:08 PM, Joshua Muheim wrote:
> Oh great, I was exactly on the right track but didn't dig deep enough!
&g
isabehaviormethod() etc
>
> so i would recommand using behaviors - thats pretty much exactly what
> those behaviors are supposed to do
> they enhance your current model.
>
> e.g. Tree Behavior:
> genereteetreelist() can then be called in the model itself, like you
> wanted t
So far I didn't come to a better solution than just wrapping the
methods I want to implement:
class AppModel extends Model {
function someFunction($params) {
return BetterModel::someFunction($params);
}
}
But I remember that there's some OOP function in PHP5 that catches
missing methods,
> One other thing: Questions of passing a model to the view aside,
> models should be agnostic with respect to access control and
> authentication.
That's a good point. I'm currently fine-tuning my solution and will
release it as a component. Let's see if it will be liked. :-)
Check out the new C
ce with my solution yet,
but I expect it to be very useful.
On Thu, Nov 18, 2010 at 7:07 PM, cricket wrote:
> On Thu, Nov 18, 2010 at 11:15 AM, Joshua Muheim wrote:
>> Yes you're right, jeremy, I made this example up (my real User model
>> doesn't have an Address, I just added t
Thank you, Miles!
On Wed, Nov 17, 2010 at 8:04 PM, Miles J wrote:
> I usually do:
>
> $this->autoLayout = $this->autoRender = false;
>
> On Nov 17, 1:57 am, psybear83 wrote:
>> Hi all
>>
>> That's my automatically generated controller test:
>>
>> > /* Comments Test cases generated on: 2010-11-17
Yes you're right, jeremy, I made this example up (my real User model
doesn't have an Address, I just added this to show that there are
cases where there's more than one key that isn't another array
itself).
The reason why I'd like to know this is the following.
I have implemented a simple ACL com
Yeah, I like this discussion. Nice to have different views on the same
issue and learn something. Thank you, guys!
I guess, what RoR guys often forget, is that Ruby is a lot more a
powerful language than PHP, so it can do magic that PHP can't and so
for PHP frameworks one solution is better than f
@Miles: oh no for sure I won't! That's exactly what I was expecting
from CakePHP <2.0 already... :-P
On Tue, Nov 16, 2010 at 7:24 PM, Miles J wrote:
> Well you're going to hate Cake 2.0 which is getting rid of the error
> system in place of exceptions :P
>
> On N
t; lighthouse, as well as some discussion on the mailing list, and wiki
> pages that existed while 1.3 was being developed.
>
> -Mark
>
> On Nov 12, 8:18 am, Joshua Muheim wrote:
>> I'd really like to know why it has switched to $this->Html. Is there a
>> decision
Thank you for your replies. I was not aware that false is returned, so
I'm taking back my accusation that CakePHP is lazy. Still I'd like to
have an option that CakePHP automatically cries when in development
mode...
On Sat, Nov 13, 2010 at 5:32 PM, mark_story wrote:
> Also App::import() returns
dataset for the view.
>
> However, there is nothing stopping you creating these extra models.
>
> $this->set('data', new UserDataModel($this->User->find()));
>
> On Nov 12, 5:23 am, Joshua Muheim wrote:
>> I'd like to warm up this topic again. :-)
>&
d rather avoid that extra work in the first place by just
> pre-pending the helper name in the first place. I don't see the big deal.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
> On 12 Nov 2010, at 08:18, Joshua Mu
1 - 100 of 211 matches
Mail list logo