Re: hierarchical controllers

2006-08-02 Thread [EMAIL PROTECTED]
I asked the same question a month ago. Someone suggested using plugins. I have nog tried this yet, but it looks like the way to go. The only 'problem' is that it's not really hierarchical, because you can only separate your controllers into folders, not subfolders into that etc. See

Re: how to get rendered view with layout using requestAction

2006-08-02 Thread show true skils
thank you. --~--~-~--~~~---~--~~ 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

Re: flash() not working

2006-08-02 Thread Bret Kuhns
Also, don't forget you need to account for the redirect in your flash.thtml layout... in /app/views/layouts/flash.thtml, you must do this: head meta http-equiv=Refresh content=?=$pause?;url=?=$url? / /head $pause and $url are assigned to the layout by your call to flash().

Re: hierarchical controllers

2006-08-02 Thread meek
If it's simply a question of organizing your controllers into subfolders, you can specify additional controller paths in your app/bootstrap.php like this: $controllerPaths = array(CONTROLLERS.subdir1.DS, CONTROLLERS.subdir2.DS); - You can do the same for models and views. The paths can point to

LEGAL

2006-08-02 Thread [EMAIL PROTECTED]
Legal Source India Legal Services Legal Source India provides both civil and criminal legal assistance ranging from legal advice to full case representation, depending on client need. Our staff of 78 attorneys and 47 paralegals is parted into areas of legal expertise to best address the

HEALTHCARE

2006-08-02 Thread [EMAIL PROTECTED]
KPO Base Healthcare Services We at KPO Base provide thought leadership to our healthcare clients by closely watching the developments and challenges met by the healthcare industry continuously. Our incorporated analyses offer industry, competitive, customer and technology modernism along with

ACCOUNTING

2006-08-02 Thread [EMAIL PROTECTED]
FINANCE-OUTSOURCING Accounting Financial Services Finance-Outsourcing provides clients with a total Financial and Accounting Outsourcing Solutions. Having access to timely and accurate financial and accounting information is crucial for organizations to maintain a competitive edge in the

SOFTWARE

2006-08-02 Thread [EMAIL PROTECTED]
Thuriam Software Services From solution design and offshore software development to outsourcing application support and improvement, Thuriam's offers a compelling alternative to minimize software development costs, and improve the quality of your software solutions and compress software

KPO

2006-08-02 Thread [EMAIL PROTECTED]
KPO Base KPO Services Knowledge Process Outsourcing ( KPO ) Services from DataGrep cover the entire segments ranging from data entry to research development Pharma. Few of our services here for preview: ยท Legal services Reviewing transactional litigation documents; drafting

Re: about multiple select

2006-08-02 Thread ByteDoc
Hi Daniel, For more information about the HTML helper and its functions refer to the API or have a look at the inline documentation of the file html.php (located in cake/libs/view/helpers). Searching for the function selectTag supplies you with the following comment: /** * Returns a formatted

Model undefined?

2006-08-02 Thread Mattijs
Hey, I seem to have an ackward problem in the newsmodel or a controller using it, even though it should be very simple. My frontpage uses the 'Nieuws' model and succesfully retrieves all records in the database. My 'Nieuws' controller has a function 'toevoegen' ('add' in english), and also

Re: Model undefined?

2006-08-02 Thread Mattijs
As an addition: leaving out the $uses makes the app ask for 'Nieuw' as modelname, it seems that when calling generateFieldNames, the controller forces singularization to find the modelclass and ignores the $uses... this would also explain why my agenda controller which is in fact identical

selection of one select tag populates the options for another select tag

2006-08-02 Thread deepa
Hi selection of one selet tag should populate the options for another select tag. I want this to do for 3 levels like category, subcategory and one more level of subcategory. How can i do this? Can anyone give me an example to do this type of selection or any link would be helpful. Example:

lot's of add lately

2006-08-02 Thread francky06l
Hello, Seems that Cake PHP group is becoming popular and along with this the target for a lot of advertisement and other stuff not really related. Is there any moderator to do cleaning ? Thanks --~--~-~--~~~---~--~~ You received this message because you are

Re: about multiple select

2006-08-02 Thread Daniel King
Thanks. I've only checked the manual, and I fount that it seemed to be for some old edition of CakePHP. There is no description of selectTag, only an example in the Saving hasAndBelongsToMany. The code is:?php echo $html-selectTag('Tag/Tag', $tags, null, array('multiple' = 'multiple')) ? Is

How can i call an action from a different controller from an action

2006-08-02 Thread codecowboy
Hi, Let's say that i want to handle form data which affects several models. I would like to have a controller for each model that stores data only for that model. I then want to be able to mix and match the edit actions from various controllers. An example might be a registration page

Re: OthAuth and sql error

2006-08-02 Thread CraZyLeGs
what version of mySQL ? do you have the models ? the tables in the db ? defined the associations well ? this is some of the questions you need to answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: How can i call an action from a different controller from an action

2006-08-02 Thread francky06l
you can call requestAction also in controller. That's a good way to make an action from another controller. You will have to pass the data for your action, they can be retrieve in your other controller actions using $this-params['pass'] --~--~-~--~~~---~--~~ You

Re: lot's of add lately

2006-08-02 Thread ByteDoc
Just joined this group today, but I was surprised by the amount of ad posts as well - I second your motion for moderated editing/deleting of theses posts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: about multiple select

2006-08-02 Thread ByteDoc
Cake is changing everyday, the manual will almost always lag behind the development. This is why the inline documentation/API is more up to date than the manual. As Cake is no finished software, try not to rely on the manual alone, but let the code and the API be your guide as well ;) P.S.: The

Re: Re: Model undefined?

2006-08-02 Thread Samuel DeVore
You might look at setting up some custom pluralizations in the the apps config/inflections.php file. It could be that the inflections are not working out right. The model and controllers are pretty dependant on that On 8/2/06, Mattijs [EMAIL PROTECTED] wrote: As an addition: leaving out the

Re: lot's of add lately

2006-08-02 Thread gwoo
we try to keep track of the spam and ads. They are always removed and banned. Unfortunately, we can not catch it before it goes out as members of the list are free to post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: lot's of add lately

2006-08-02 Thread Larry E. Masters aka PhpNut
I have banned the user who spammed today...-- /*** @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

Re: lot's of add lately

2006-08-02 Thread francky06l
Thanks to the modos. Actually is also a good sign of the vitality of a group ;) Thanks --~--~-~--~~~---~--~~ 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

Re: OthAuth and sql error

2006-08-02 Thread lorenzo
CraZyLeGs ha scritto: what version of mySQL ? 3.23.58 do you have the models ? the tables in the db ? yes, of course defined the associations well ? yes, of course Cut paste from tutorial --~--~-~--~~~---~--~~ You received this message because you are

Re: lot's of add lately

2006-08-02 Thread DJ Spark
must say to the newcommers it never happened with this frequency before. usually , it's only one or two per week :) spark On 8/2/06, francky06l [EMAIL PROTECTED] wrote: Thanks to the modos. Actually is also a good sign of the vitality of a group ;) Thanks -- [web]

Paradigm shift :: Procedural - OO Paterns based development

2006-08-02 Thread kestrelid
I have been programming with several different languages for many years but always in a procedural manner. I have been trying to use OO development ideals recently but they always end up in a messy hybrid implementation. So have started trying to use cakePHP. Frustrating to say the least! Least

Re: Paradigm shift :: Procedural - OO Paterns based development

2006-08-02 Thread John David Anderson (_psychic_)
On Aug 2, 2006, at 10:17 AM, kestrelid wrote: I have been programming with several different languages for many years but always in a procedural manner. I have been trying to use OO development ideals recently but they always end up in a messy hybrid implementation. So have started

$this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
$this-redirect('/controller/action'); not working :( i always have blank page :/ DEBUG 0,1,2.. no matters. any ideas? $this-flash() working (with message and redirect after x seconds) but $this-redirect('/') always gives blank page :( --~--~-~--~~~---~--~~

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson
On Aug 2, 2006, at 10:29 AM, [EMAIL PROTECTED] wrote: $this-redirect('/controller/action'); not working :( i always have blank page :/ DEBUG 0,1,2.. no matters. any ideas? $this-flash() working (with message and redirect after x seconds) but $this-redirect('/') always gives blank page

Re: $this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
i write custom error handler (redirect to main page after e404) from here: http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/ and then i have blank page so i write only redirect to test what's going on and then also i have blank page: class HomeController extends

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson (_psychic_)
On Aug 2, 2006, at 10:39 AM, [EMAIL PROTECTED] wrote: and then i call it http://site.com/home/re and i have blank page instead of /users/login or whatever else. If you turn up DEBUG to 3 do you get any messages? What happens when you view source? Is there a view for that action? Anything

Re: $this-redirect('/') not working :(

2006-08-02 Thread [EMAIL PROTECTED]
If you turn up DEBUG to 3 do you get any messages? Warning: Cannot modify header information - headers already sent by (output started at C:\www\workspace\site.com\app\config\core.php:149) in C:\www\workspace\site.com\cake\libs\controller\controller.php on line 396 What happens when you view

Re: $this-redirect('/') not working :(

2006-08-02 Thread John David Anderson (_psychic_)
On Aug 2, 2006, at 10:56 AM, [EMAIL PROTECTED] wrote: If you turn up DEBUG to 3 do you get any messages? Warning: Cannot modify header information - headers already sent by (output started at C:\www\workspace\site.com\app\config\core.php:149) in

Would this work....?

2006-08-02 Thread rpeterson
I am trying to work on optimizing one of my apps to make it cleaner and faster. In this I am thinking about doing action aliasing like this...will this work? !-- BELOW REPRESENTS A CONTROLLER -- //--START var $beforeRender = array('_prepForOut'); var $Out = array(); //This holds all values

Re: Cake PHP and templates

2006-08-02 Thread RosSoft
If you like custom tags, see this: http://rossoft.wordpress.com/2006/06/20/custom-html-tags-widgethelper/ http://rossoft.wordpress.com/2006/07/01/mail-templates/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Paradigm shift :: Procedural - OO Paterns based development

2006-08-02 Thread Chris Lamb
Hi Kestrel, I found a web link into the IRC channel a few days ago and haven't been able to find it again since. Pointers please... Here[0], although it is best to connect using a 'proper' IRC client (details on the same page) I will be honest, this has been more of a venting excercise

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

2006-08-02 Thread jeko
Hey John, Regarding your onload problem, you could do window.attachEvent(onload, startup); in your js file, and it should fix the body onload problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

hasAndBelongsToMany with a join table with a datetime column

2006-08-02 Thread Matt
I'm currently in the midst of porting an existing site to CakePHP. The site's database has two tables, Members and Teams, and these are connected by a join table. However this join table has a third column that stores the datetime that the link / join was made. I've setup the models to use

Re: hasAndBelongsToMany with a join table with a datetime column

2006-08-02 Thread Chris Lamb
Hi Matt, However if I create a third model can I use that to order the results? Sure you can :) class Member extends AppModel var $name = 'Member'; var $hasMany = array('MemberTeam' = array( 'className' = 'MemberTeam', 'order' =

hasMany works with scaffolding but not baking a controller and view

2006-08-02 Thread [EMAIL PROTECTED]
i have a users table and a articles table. if i have a controller with scaffolding turned on, the edit works fine, and the select menu appears correctly with the name of each user. however if i bake the controller and view, i get an error Notice: Undefined variable: created_byArray in