Re: Sub-directories in Controllers directory

2006-06-22 Thread Langdon Stevenson
Hi Nick Thanks for the feedback, but unfortunately that doesn't fit the bill for me. Really all I am trying to do is break down a very complex controller. Sadly the functionality can't be shared with other parts of the application. I could break the controller up into multiple controllers,

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
no problem with the email function : last week it works fine $components=array( 'Email'); sure I write it, to there is the error: Fatal error: Call to undefined function: send() in /usersdev/wii/web/html/check/app/controllers/applications_controller.php on line 17 and the controller: class

Re: component function not found

2006-06-22 Thread 100rk
Hi, from what version of CakePHP You did upgrade to 3148? Few weeks ago was in cake's code changed one thing, which affects all helpers - they have to extend Helper class so they can work well. So if Your Email helpers is extending other class which is not decendent of Helper (or Helper

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
Email is a component and you can find the code at http://wiki.cakephp.org/tutorials:sending_email --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: findAll and sorting

2006-06-22 Thread Repsah
Did you try$sortby = Model.field1 desc, Model.field2 desc;And set debug up to 2 in core.php to check the query it's performing.On 6/21/06, Siegfried Hirsch [EMAIL PROTECTED] wrote: Hello there,I just came across a problem with sorting in the findAll function.I just coded:$sortby = field1

Re: component function not found

2006-06-22 Thread AD7six
Hi wluigi, Do you have a model named Email aswell...? If you put: e(Start DebugbrHere's Email:); pr ($this-Email); e(Here's email:); pr ($this-email); // Just to be sure e(brEnd Debug:); $this-Email-controller = $this; There might be something tangible to use and say what the error is.

Re: component function not found

2006-06-22 Thread 100rk
Let me to apologize to You, I was thinking of few different things and in attempt to help You I mixed them together. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: component function not found

2006-06-22 Thread AD7six
There will be a very simple explenation for this, if you have a recent version of cake (e.g. v 3000 or more) I think it-s time to stop by the irc ;) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: component function not found

2006-06-22 Thread RosSoft
Try changing controller component to this: class ApplicationsController extends AppController { //var $scaffold; var $name = 'Applications'; var $components=array('Email'); function index(){ $some_data_for_email='test';

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
100rk: no problem AD7six: it's hard for me to use the irc here (at work), can you still give me your very simple explenation for this RosSoft: I already try it before, but I still Copy past your code : I got the same error. --~--~-~--~~~---~--~~ You received this

Re: component function not found

2006-06-22 Thread 100rk
apply first question to Your own AppController also, if You have one :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
No own AppController No constructor ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
I've my own PagesController ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Layout And View Problem

2006-06-22 Thread bibek
Hey thanks, well i came to know that the variables posted through set $this-set('name',value) are also accessible in the elements accessed through layouts. That did the trick i guess. thanks cake is tasty! --~--~-~--~~~---~--~~ You received this message because

Re: component function not found

2006-06-22 Thread 100rk
:-(( Then: put this method into Your ApplicationsController: function __construct() { e('Components before parent constructor: '); pr($this-components); parent::__construct(); e('Components after parent constructor: '); pr($this-components); } For explanation of I'm trying

Re: component function not found

2006-06-22 Thread 100rk
Your own pages controller is not matter in this case, as we're running action from other controller. I assume You're trying hunt this error in empty controller and layout, so we can be sure You're not calling other things in during lifetime of script for example by requestAction() etc. BTW: from

Re: component function not found

2006-06-22 Thread 100rk
Run this controller, please (http://example.com/problem/): ?php class ProblemController extends AppController { var $name = 'Problem'; var $uses = null; var $components = array('Email'); var $autoRender = false; function index() { pr($this-Email); } } ?

Re: component function not found

2006-06-22 Thread [EMAIL PROTECTED]
After changing Email to Courriel: Components before parent constructor: Array ( [0] = Courriel ) Components after parent constructor: Array ( [0] = Courriel [1] = Session ) It seems that the controler know the component but he doesn't loead id I also temporarily change line 63 of

Re: component function not found

2006-06-22 Thread AD7six
Hi wluigi: go here, and if you are lucky I _might_ be able to help: http://www.noswad.me.uk/demos/chat/ I don´t know what the explenation might be, and having conversations via the google group is slow and probably frustrating for you ;) Cheers, AD7six

Re: component function not found

2006-06-22 Thread 100rk
If You will again fail with 'Undefined property' and this will be in clean CakePHP install, You will have to put somewhere output of function phpinfo(). I assume CakePHP upgrade was only change You did - so no PHP/webserver configuration changes, no other application changes etc.

Re: component function not found

2006-06-22 Thread AD7six
PS. I should have mentioned if you have a java enabled browser, you can just go here http://irc.cakephp.org/irc.html I will wait on my page, incase you show up ;) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: component function not found

2006-06-22 Thread RosSoft
first, try updating to last bug fix version second, do you have php4 /5 ,exactly what version? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

$ajax-submit css class

2006-06-22 Thread sicapitan
print $ajax-submit('Add task', array('url' = 'add', 'update'='tasks_todo'); print $ajax-submit('Add task', array('url' = 'add', 'update'='tasks_todo','class'='something'); doesn't work, is there a different format? --~--~-~--~~~---~--~~ You received this

How to block ?

2006-06-22 Thread [EMAIL PROTECTED]
So, I mean this... site.url.com/comments/add - if some bad guys copy this html code at his site, and make 3-5 line of php code. He can made a lot of comments at my site from his badguys.com/comments.php (copy my file + some bad addons ;) Of couse, I understand, put PHPSession in hidden tag

Setting rdBloggery

2006-06-22 Thread [EMAIL PROTECTED]
Hi, New bie... I am trying to set up the rdBloggery application. Is it possible to configure the rdBloggery without mod_rewrite things ? I tried a lot. But all invain. I found the .htaccess files in some folders. I removed all those and I uncommented the 42 nd line from core.php. When I type

Where conditions for hasAndBelongsToMany?

2006-06-22 Thread Matt
Hello everyone, Must say I am very impressed with CakePHP but I'm having trouble getting my head around associations, particularly hasAndBelongsToMany. The scenario is this, I've got two tables Users and Teams linked by a join table. When I return a team using Team-find sometimes I only want to

Re: Where conditions for hasAndBelongsToMany?

2006-06-22 Thread Samuel DeVore
Have you looked in the model chapter of the manual http://manual.cakephp.org/chapter/6 you are looking for the section on adding conditions. For example one thing that I have as a condition is flActive=true Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote: Hello everyone,Must say I am very impressed

Re: How to block ?

2006-06-22 Thread RosSoft
see http://groups.google.es/group/cake-php/browse_thread/thread/cc0dd3c39c73aeb6 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Where conditions for hasAndBelongsToMany?

2006-06-22 Thread Samuel DeVore
then what you are probably looking for is bindModel and unbindModel look at some of the listings at http://cakephp.org/search?q=bindModel (cakebaker has a nice overview) you can also have conditions in your findAll and find calls Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote: Hi Samuel,I saw that

Re: FCK eventually sorted out - For AD7Six (and those interested)

2006-06-22 Thread Jon Bennett
Anyhow, I'm still looking for the one perfect, free, stable, standards-compliant and customizable WYSIWYG editor that someone wrote for me, but I'm not holding my breath. I've used http://tinymce.moxiecode.com/ a few times, have customised the thumbnail browsing etc to query the db, not in

Re: real friendly urls

2006-06-22 Thread Jacek
But you must write routes for all locales. I think locales should be in database + some logic for aid translating. Anyway my code is not for locale support. It's for readable/memorable urls. --~--~-~--~~~---~--~~ You received this message because you are

Re: php doc

2006-06-22 Thread Larry E. Masters aka PhpNut
http://www.phpdoc.org/-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic */ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

FindAll HABTM query problem

2006-06-22 Thread bitrace
Hi! I've been having some problems querying two data models that are related by a HABTM association. Basically I have two models User and Feed linked by a HABTM association which use the following database tables. users feeds feeds_users (join table) The association seems to be working as

Re: Manual de Cake PHP en Español

2006-06-22 Thread RosSoft
There isn't any CakePHP manual in spanish, sorry. And please speak in spanish in this google group. The spanish group is http://groups.google.es/group/CakePHP-es?lnk=li --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: $ajax-link not to load default.thtml

2006-06-22 Thread sicapitan
Superb, you win --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: Manual de Cake PHP en Español

2006-06-22 Thread RosSoft
I mean speak english in this group :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Where conditions for hasAndBelongsToMany?

2006-06-22 Thread DJ Spark
not something like this ? $this-MyModel-find('MyModel.parent_id = 0'); this should return only those MyModel (and associated Models, depending on the $recursive depth) that respect this specific condition. spark On 6/22/06, Matt [EMAIL PROTECTED] wrote: Hi Samuel, I saw that section

Re: ajax autocomplete.

2006-06-22 Thread nate
FYI, charsetTag is deprecated, use charset. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: $ajax-link not to load default.thtml

2006-06-22 Thread sicapitan
ok you win now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: php doc

2006-06-22 Thread ivan
Thank a lot! just one more thing, i still can´t get it right about the @package and @subpackage thing, let's say I code a model User and the controller is Users, what should be @package and @subpackage for each one? --~--~-~--~~~---~--~~ You received this

Re: php doc

2006-06-22 Thread Larry E. Masters aka PhpNut
Ivan,This is how I do it with cake comments.@package app@subpackage app/controllers@package app@subpackage app/modelsLook at the way I have done it in the cake code, it should be pretty obvious there, -- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string

Re: findAll order throws error inexplicably

2006-06-22 Thread AD7six
Hi Ian, Set your app/config/core.php debug to 2 and you'll see the sql statements at the foot of the page, and I guess you will also see that two fields with the name of ui_name are included (from an association). if you specify model.field = ASC that should do it for you. Cheers, AD7six

Re: $ajax-link not to load default.thtml

2006-06-22 Thread AD7six
RequestHander seems to go part way to meeting the first point on this list: https://trac.cakephp.org/wiki/Proposals/4.0ToDoList :) Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: findAll order throws error inexplicably

2006-06-22 Thread I. E. Smith-Heisters
Thanks much, not just for the answer, but for the debugging tip which will help me figure out future bugs. I'd tried 'table.field', thinking it was raw sql, but doing 'model.field' did the trick. Thanks again. --~--~-~--~~~---~--~~ You received this message

Re: RFC: Possible new feature for html helper

2006-06-22 Thread Martin
Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Shopping Cart Session Code

2006-06-22 Thread jeko
Thought this might be useful for some, manages a session cart/wishlist: ?php class WishlistController extends AppController { var $uses = 'Product'; var $helpers = array('Html', 'Javascript'); var $layout = 'default'; // loop thru products in session //

Re: findAll and sorting

2006-06-22 Thread Siegfried Hirsch
2006/6/22, Repsah [EMAIL PROTECTED]: Did you try $sortby = Model.field1 desc, Model.field2 desc; the solution is: $sortby = array(field1 = DESC, field2 = DESC); -- Siegfried Hirsch http://www.rss-blogger.de / http://seconds11.com http://www.newsbee.de NewsBee 2.0 - customized RSS solutions

Re: Shopping Cart Session Code

2006-06-22 Thread jeko
I'll make it a little less app specific first, but that's a good idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Another HABTM Save Problem

2006-06-22 Thread Myk
Hi, I have 3 tables: profiles, projects and profiles_projects I have var $hasAndBelongsToMany = 'Project' on profile.php and var $hasAndBelongsToMany = 'Profile' on my project.php file. I can retrieve/query fine, but when saving, I get this error: Warning: Invalid argument supplied for

Cake Sheet

2006-06-22 Thread gwoo
Thanks to some hard work by nate, sdevore and the use of my trusty whip, we have been able to put together the first draft of the Cake Sheet. We hope this provides a nice reference to the core Cake functionality. the project: http://cakeforge.org/projects/cakedocs the pdf version:

Re: Another HABTM Save Problem

2006-06-22 Thread Myk
Seems to work when data[Profile][Profile] is not in a hidden field... Strange --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Another HABTM Save Problem

2006-06-22 Thread Myk
Found the problem... using: $html-hidden('Profile/Profile', array('value' = $this-controller-Session-read('p.id'))); doesnt work for me. I had to manually insert the profile id in the create method of my projects controller: $this-data['Profile']['Profile']['id'] = $this-Session-read('p.id');

Re: Cake Sheet

2006-06-22 Thread hugeLH61
I am new (only my second day at the oven) - so a warning to another newbies. The latest manual is not at the top of the page - that is an old release. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Passing data from modelA to ModelB.

2006-06-22 Thread Carlos Mauricio Samour
I am confused with something I have 2 models one is called Transacctions the other is called Onhand. Transacctions -id -product_id -quantity Onhand -id -product_id -quantity_onhand After each transacction is inserted I want to increase or decrease the quantity_onhand using the quantity value