Re: Why we cann't use Auth component in AppController?

2009-03-04 Thread joshua
Thank you, Miles. I almost made a big mistake this time. I try to modify it now. On Thu, Mar 5, 2009 at 10:50 AM, Miles J wrote: > > Your doing Auth all wrong. > > http://www.milesj.me/blog/read/5/using-cakephps-auth-component > > >

Re: What do you develop in (ide, text editor, etc.)?

2009-03-04 Thread joshua
The textmate on windows/ some times I need editplus. Eclipse is eating your machine memory! On Sun, Mar 1, 2009 at 4:14 AM, adam wrote: > > I'm using Eclipse with PDT, but Dreamweaver for making layouts. > > > -- Thanks Joshua --~--~-~--~~~

Re: Why we cann't use Auth component in AppController?

2009-03-04 Thread joshua
I just guess, maybe I should spend some time to find the really fail reason of my application. On Thu, Mar 5, 2009 at 9:25 AM, joshua wrote: > Thanks all of your reply! Many appreciate! > I find the problem, > > Model::User: > function validateLogin($data){ > //... >

Re: Why we cann't use Auth component in AppController?

2009-03-04 Thread joshua
ontroller and it will work fine, and you can > override it in UsersController. In this controller, you can write > > beforeFilter() { > parent::beforeFilter(); // this line will call the AppController's > beforeFilter line 1 > > } > > and after line 1, you can put new

Re: Why we cann't use Auth component in AppController?

2009-03-04 Thread joshua
er? > > On Mar 4, 4:01 pm, Joshua wrote: > > It seems that if I use Auth component in AppController and then I use > > it again in my UserController again. All the request like ../users/ > > method_a will be redirect to login page. > > If I remove the Auth component fr

Why we cann't use Auth component in AppController?

2009-03-04 Thread Joshua
It seems that if I use Auth component in AppController and then I use it again in my UserController again. All the request like ../users/ method_a will be redirect to login page. If I remove the Auth component from UserController, everything works fine! Why? Is there any explanation for this? --~-

Re: Question about the actions in aros_acos

2009-02-20 Thread Joshua
urn. That means we can set these four actions separately. On Feb 21, 10:29 am, Joshua wrote: > Steve, thank you! > Yeah, I found this in cake source code > > //code > /** >  * Determines whether the given user is authorized to perform an > action.  The type of >  * authoriza

Re: Question about the actions in aros_acos

2009-02-20 Thread Joshua
ission will be granted to the > entire node. Which is what you brought up as true and false setting. > So if you want it to be true, set all 4 columns to "1", or if you want > it to be false, set all to "0" (or at least one column to "0"). > > Not sure

Re: Question about the actions in aros_acos

2009-02-20 Thread Joshua
tected. > > so you can add acos (action) in your controller just like function index, > view...etc > and assign AROs to it. > > On Fri, Feb 20, 2009 at 5:01 PM, Joshua wrote: > > > Is there anybody can help me? > > > On Feb 20, 8:22 pm, Joshua wrote: > > &g

Re: Question about the actions in aros_acos

2009-02-20 Thread Joshua
Is there anybody can help me? On Feb 20, 8:22 pm, Joshua wrote: > Hi, > I try to add ACL to my application, but when I take a look at the > table 'aros_acos', it seems there is only four actions in the table. > Did it mean that we can only use four actions in our applica

Question about the actions in aros_acos

2009-02-20 Thread Joshua
Hi, I try to add ACL to my application, but when I take a look at the table 'aros_acos', it seems there is only four actions in the table. Did it mean that we can only use four actions in our applications? Is there any body can explain this? Many thanks! --~--~-~--~~~-

How to use SaveAll to save one-to-many relationship datas?

2009-01-13 Thread Joshua
If todos table has one-to-many relationship with tasks table, what the data format should be if I want save all of them at once? //like SaveAll($data) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. T

SaveAll + one-to-many

2009-01-12 Thread Joshua
I have no idea on how to save model A that has a one-to-many relationship with module B. Example: --- table A id name -- table B id a_id name -- How to do this if I want to save A with many B records in model A function. I really google a lot of resource, but I didn't find the answer

Can you store multiple MPTT trees in same table using TreeBehavior?

2008-08-21 Thread Joshua McFarren
I seems to contradict my assumption. Any help would be greatly appreciated. Best, Joshua --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroup

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-24 Thread Joshua McFarren
it half worked the wrong way but its fixed now. Thanks again. Best, Joshua > class Schedule extends AppModel { > var $name = 'Schedule'; > var $hasMany = array( > 'ProjectTasks' => array( > 'className' => 'P

Re: Making a field Unique

2008-04-20 Thread Joshua McFarren
Cake's validation will respect your DB. CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL auto_increment, `username` varchar(255) NOT NULL default '', `password` varchar(255) NOT NULL default '', `email` varchar(255) NOT NULL default '', `profile` varchar(255) NOT NULL default '',

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread Joshua McFarren
7;m pretty sure the wrong Model:save() is being called. I need to figure why ProjectTask::save() is not handling this. Still stumped and its probably something very obvious. Best, Joshua > sparked an idea to override ProjectTask::save() to see if that's even > being called and its not!

Re: Routing question

2008-04-18 Thread Joshua McFarren
I think this is possible through a combination of altering your bootstrap and routes. Heres some ideas to get you started: http://bakery.cakephp.org/tags/view/subdomain Let us know if you have any success! Cheers, Joshua On Apr 16, 10:44 am, MonkeyGirl <[EMAIL PROTECTED]> wrote: > &g

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-18 Thread Joshua McFarren
s AppModel { var $name = 'Schedule'; var $hasMany = array( 'ProjectTasks' => array( 'className' => 'ProjectTasks', 'foreignKey' => 'schedule_id', 'dependent' => true )

Re: Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-17 Thread Joshua McFarren
ppen. Any other ideas? - Joshua On Apr 17, 7:46 pm, aranworld <[EMAIL PROTECTED]> wrote: > Try putting: > > $this->ProjectTasks->create(); > > in each loop of the foreach in Schedule::afterSave() > > When you call save() multiple times on the same model, I have found

Re: Using HtmlHelper in custom helper?

2008-04-17 Thread Joshua McFarren
Hm... this is what worked for me. Maybe its a bad, brute force, way to do it though: App::import('Helper', 'Time'); class DateHelper extends TimeHelper { ... } Best, Joshua On Apr 17, 4:38 pm, smacks <[EMAIL PROTECTED]> wrote: > LOL thanks for your comment

Question about Model::save() and its beforeSave and afterSave callbacks

2008-04-17 Thread Joshua McFarren
ld be greatly appreciated. I've read the Manual and APIs many times and I'm still not getting why this doesn't work. I'm running cake_1.2.0.6311-beta. Thanks, Joshua ## class Schedule extends AppModel { var $name = 'Schedule'; function afte

Re: Unexpected behavior of Model::getLastInsertId(); Bug or misunderstanding?

2008-04-17 Thread Joshua McFarren
Hi Tarique, So if I understand correctly, Model::getLastInsertID should do the same thing as SELECT LAST_INSERT_ID(); which only returns an ID if you inserted a row into a table that has auto_increment? http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html Best, Joshua > P.S. lo

Unexpected behavior of Model::getLastInsertId(); Bug or misunderstanding?

2008-04-17 Thread Joshua McFarren
vior of the method? The API says, "Returns the ID of the last record this Model inserted." Am I reading this wrong? Its it only supposed to return the Id of a CREATE not an UPDATE? Again, I tested this with cake_1.2.0.6311-beta and a recent nightly build (cake_1.2.x.x_16.04.2008). Best, J

Re: Please help, I can't get Model getLastInsertId to work

2008-04-16 Thread Joshua McFarren
ecent nightly build (cake_1.2.x.x_16.04.2008). FYI, from the API: Model::afterSave( $created ) After save callback Parameters: boolean $created True if this save created a new record public Definition at line 2494 of file model.php. Referenced by save(). Best, Joshua > Perhaps I'm just j

Please help, I can't get Model getLastInsertId to work

2008-04-16 Thread Joshua McFarren
Hello, I'm probably just being dumb, but I can't seem to figure out getLastInsertId when called from a Models afterSave method. Here's what I thought should work: $project_task_id = $this->getLastInsertId(); If i hard code in a value for $project_task_id then everything else works and when I de

Manual query with multidimensional associative array results

2008-01-13 Thread Joshua
[id] => 1 [title] => This is the title [... etc ...] ) [User] => Array ( [id] => 1 [name] => Joshua [... etc ...]

Re: Cake uses JOIN instead of LEFT JOIN

2007-10-09 Thread Joshua Benner
You might consider a custom finderQuery. There are examples of this on the group. [EMAIL PROTECTED] wrote: Hi, I have moved the project to the production server and I got this error: --- SELECT `Post`.`id` , `Post`.`event_id` , `Post`.`visible` , `Post`.`time` , `Post`.`subject` , `Post`

Re: Objects instead of arrays

2007-10-03 Thread Joshua Benner
I think object returns are not fully implemented. It will be an uphill battle if you want to use the data in that way. stefanb wrote: Well, that didn't seem to work: "Fatal error: Cannot use object of type stdClass as array in C:\xampp \htdocs\cake\cake\libs\view\helpers\form.php on line 1

Re: CakePHP Presentation

2007-10-02 Thread Joshua Benner
It would be really cool to have an entire workable application written while I'm up front... and it's conceivable with bake. Hmm rtconner wrote: > Show em bake and code generation :D > My fav. > > > > > --~--~-~--~~~---~--~~ You received this message beca

Re: CakePHP Presentation

2007-10-02 Thread Joshua Benner
ke console is a good one to mention BTW, I live in the phila area. Where and when will you be speaking? On Oct 2, 11:19 am, Joshua Benner <[EMAIL PROTECTED]> wrote: I'll be presenting CakePHP at an education event in the Philadelphia area. The event is run by a local PHP/Drupa

Re: CakePHP Presentation

2007-10-02 Thread Joshua Benner
ke console is a good one to mention BTW, I live in the phila area. Where and when will you be speaking? On Oct 2, 11:19 am, Joshua Benner <[EMAIL PROTECTED]> wrote: I'll be presenting CakePHP at an education event in the Philadelphia area. The event is run by a local PHP/Drupa

CakePHP Presentation

2007-10-02 Thread Joshua Benner
I'll be presenting CakePHP at an education event in the Philadelphia area. The event is run by a local PHP/Drupal user group and will involve presentations of several PHP frameworks. What do you guys think are the most important features of Cake to highlight? Do you have any suggestions for p

Re: Easy way to deal with enum's?

2007-09-27 Thread Joshua McFarren
If you only need 0/1 then why not use tinyint(1) unsigned instead of enum? That way cake will automagically make you a checkbox in scaffolding and baked views. On Sep 27, 4:26 pm, robechar <[EMAIL PROTECTED]> wrote: > The best thing I have found is the getEnumValues function in > cakeforge. I p

Re: "webroot visible in the url" || "bake -app newsite caused htaccess woes"

2007-09-24 Thread Joshua McFarren
I figured this out so I thought I would post the solution. The VirtualHost DocumentRoot needs to be: /var/www/cake/site2/webroot/ NOT /var/www/cake/site2/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Code Style Fanaticism

2007-09-24 Thread Joshua Benner
I cannot speak to the problems you had with getting your code posted, but the Cake standards are basically PEAR standards... which have been around for a long time, I think. I believe in a large coding community it is important to have these standards. One isn't necessarily right making anoth

"webroot visible in the url" || "bake -app newsite caused htaccess woes"

2007-09-21 Thread Joshua McFarren
I just started developing a new app using the lastest 1.2 source. The old way I used to do things was to untar a fresh instance of cake into /var/www and then rename it something like www.sitename.com. I would the setup a VirtualHost directive in Apache and point DocumentRoot to /var/www/www.siten

Re: Cake + Drupal

2007-07-27 Thread Joshua Benner
show a cake application inside of drupal or can I modify drupal modules by using cakephp functions? On 26 jul, 21:22, Joshua Benner <[EMAIL PROTECTED]> wrote: http://drupal.org/project/drake enkara wrote:Hi, I want to use Cake and Drupal for my site but I can't find any tutorial tha

Re: Cake + Drupal

2007-07-26 Thread Joshua Benner
http://drupal.org/project/drake enkara wrote: Hi, I want to use Cake and Drupal for my site but I can't find any tutorial that teaches me in how to do this. I just don't know how start and if I can use cake only in separate way or I can use cake inside of drupal files like page.tpl.php (in

Re: Apply behavior only for certain model methods?

2007-07-26 Thread Joshua Benner
The auto-functions like beforeFilter, afterSave, etc will be called at every appropriate time if a model is associated with a behavior. One of the nice things about behaviors, though, is that other functions defined on them will be available on the model as if those functions were defined on t

Re: Are Model objects supposed to be used like singletons?

2007-07-25 Thread Joshua Benner
Model objects, from my understanding, are instantiated once, and not meant to be explicitly instanced by your code, so you could call them singletons. I'm not sure what you're asking about recycling the object between contexts... that sounds like a very Java-oriented question. ;) bingomanatee

Re: Display database host in view.

2007-07-24 Thread Joshua Benner
Maybe define app/app_controller.php, in which you define beforeFilter, which will $this->set('database', )  ?  Just be sure to call parent::beforeFilter() if you override on children controllers. kbowerma wrote: I would like to display the database, and database host that I am connect to

Re: Only include js in certain views

2007-07-20 Thread Joshua Benner
Put $_javascript_->link in the view instead of the layout? [EMAIL PROTECTED] wrote: Is there a way to only include a _javascript_ file in certain selected views. I have it as being included in the default layout with link('tooltip')."\n"; ?> but I it's causing errors on views I don't

Re: Models not related to db?

2007-07-16 Thread Joshua Benner
I make controllers that are not directly related to a database model frequently. In the controller: var $uses = null; Quick search for "controller without a model" yielded many relevant results, including: http://groups.google.com/group/cake-php/browse_thread/thread/f9965004e2f3efc2/3d7ab42

Re: Regarding php,ajax,frameworks

2007-07-12 Thread Joshua Benner
} >} >http_request.open('GET', url, true); >http_request.send(null); > } > > Make a > request > > Is the above javascript coding only ajax or is there any different > types of coding for ajax . > > I hope you will help me on this.please. >

Re: Downloading Files Through PHP

2007-07-12 Thread Joshua Benner
ne. > > The problem seems to be the name of the file, or perhaps permissions. > I am not sure which. Any help or trouble shooting advice would be > greatly appreciated. > > Thanks, > Brett > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~---

Re: MS SQL server problem

2007-07-10 Thread Joshua Benner
uch easier :-) Regards, Langdon I ran into problems similar to this when I had PHP executing as an unprivileged user. Otherwise, I'd write a little test script for connecting to the db, and google for others having problems connecting PHP to MSSQL. -- Jos

Re: MS SQL server problem

2007-07-09 Thread Joshua Benner
I ran into problems similar to this when I had PHP executing as an unprivileged user. Otherwise, I'd write a little test script for connecting to the db, and google for others having problems connecting PHP to MSSQL. Langdon Stevenson wrote: Hi I have a Cake app that has been running happ

Re: Most wanted features in a CakePHP IDE Plugin ?

2007-07-07 Thread Joshua Benner
DE can leverage. > - We all have tidbits that can be shared amongst other bakers for the > benefit of the community. > > So why not get a complete list of it and then submit it to the dev > team of our most loved IDE ? > > Cheers, > Gustavo Carreno > --- > < If you know Red Hat

Re: SQL Server and Bake

2007-06-30 Thread Joshua Benner
use. > > Anyway, the message I get says that mssql_pconnect() (or > mssql_connect(), depending on my persistence variable) is unable to > connect: SQL Server is unavailable or does not exist. Any opinions/ > thoughts would be much appreciated. > > > >

Re: HABTM Question

2007-06-30 Thread Joshua Benner
er, the sql statement issued for this is : > > SELECT `Tag`.`id`, `Tag`.`name` FROM `tags` AS `Tag` WHERE 1 = 1 > > Should I use $this->Post->findAll(array('Post.user_id'=>$userid)); and > then fetch the tags from here but does not seem optima

Re: horizontal form fields with css

2007-06-26 Thread Joshua McFarren
You should start with a blank CSS file and define all your own styles and then you wont be guessing what is causing what. This is a CSS issue not a Cake one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP

Re: jake

2007-06-26 Thread Joshua Benner
Drake loads both the CMS css as well as the Cake css. Layouts are used as normal. Amy1234 wrote: > So jake in essence provides a wrapper for my jake app. Will I need to > do layouts for my app or will it use the joomla template? > > On Jun 26, 9:38 am, Joshua Benner <[EMAIL PR

Re: jake

2007-06-26 Thread Joshua Benner
wrote: > Hello > > I use joombla for one of my sites. I am trying to buil an application > w/ cake. I don't understand the concept of jake. what does jake do? > What do they mean by a bridge? How does it work? > > Thanks > > > > >

Re: eclipse and PDT - cannot resolve

2007-06-26 Thread Joshua Benner
ot;PDT Feature (1.0.0.V20070611-79--C-YGHEH6PP) > requires feature "org.eclipse.wst (2.0.0)", or compatible." error > message. Any gotchas would be helpful. > Cheers. > > Vaz > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~-

Re: Simple association problem

2007-06-22 Thread Joshua Benner
; > The problem is that cake doesn't make the association between tables, > when I do: > > $this->set('doc', $this->Document->read(null, '1')) ; > > > Output: > Array ( [Document] => Array ( [id] => 1 [recorder_id] => 1 > [prop

Re: Which editor you use for views ?

2007-06-21 Thread Joshua Benner
er... What about you guys ? > > Max > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

Re: HABTM relationship and meta-data in link-table

2007-06-21 Thread Joshua Benner
Has Many --> Belongs to <-- Has many method. The solution was to use the recursive variable. thanks for the help so far. On Jun 20, 1:59 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: I did something similar, where 'faculty' has and belongs to many 'activity&#

Re: HABTM relationship and meta-data in link-table

2007-06-20 Thread Joshua Benner
I did something similar, where 'faculty' has and belongs to many 'activity' and each link has a student count associated with it -- I used a custom finderQuery in the definition of the association to pull the student count field with all the other data (TSQL, so some minor differences from MySQL,

Re: Recursion for my own custom query?

2007-06-18 Thread Joshua Benner
Looks good. I think I would use Cake's magic before writing my own function like that, though. However, the function also accomplishes more than the initial target functionality. AD7six wrote: On Jun 18, 1:55 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: Consi

Re: Recursion for my own custom query?

2007-06-18 Thread Joshua Benner
Consider using a 'Months' table for which you define a 'Month' model which has associations defined between it and 'Entry' Then: $this->Month->findAll(array('monthName'=>'January')) Pete wrote: I have a function in my model, to get a list of the months that I have blog entries in: functi

Re: Regarding Installation and Viewing Application

2007-06-18 Thread Joshua Benner
Cake URLs map to controller actions. So if you have a model 'User', you will likely have a controller 'UsersController', which will likely have action methods along the lines of 'add', 'view', 'edit', and 'delete'. The URLs would then be: /users/add /users/view /users/edit /users/delete Be

Re: Special Model Names in CakePHP 1.2 ?

2007-06-15 Thread Joshua Benner
r ? And where does this "user" part come from ? This suggests to me that something internal is being picked up.. Rgds, Ian. On Jun 15, 1:13 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: If you have an association and haven't specified the foreignKey, ca

Re: Special Model Names in CakePHP 1.2 ?

2007-06-15 Thread Joshua Benner
If you have an association and haven't specified the foreignKey, cake will assume it is _id b_o_n_e_y wrote: Hi all, I've just started using CakePHP 1.2 (over 1.1 stable) to take advantage of the great new pagination features. I unpacked the new cake tar ball straight over my existing pr

Re: helpers Output HTML not clean

2007-06-14 Thread Joshua McFarren
You might be interested in doing something like this: http://bakery.cakephp.org/articles/view/getting-tidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake

Re: Nested set model

2007-06-13 Thread Joshua McFarren
I really sound like a broken record now but, yes, it would be better in 1.2 as a behavior. However there are no behaviors in 1.1. I'm starting to think that a public version of the working manual for 1.2 would be helpful not only to the many, many bakers using 1.2, but also to differentiate the v

Re: upload behavior

2007-06-13 Thread Joshua McFarren
I know this sounds really obvious, but these obvious things are usually what I overlook and get stuck on: Is the directory you're trying to save the image to writable by the app? On my Debian GNU/Linux server Apache is in the group www-data, so for this example you would need to: $ sudo chgrp ww

Re: upload behavior

2007-06-13 Thread Joshua McFarren
You're using cake 1.2 right? FYI there are no behaviors in 1.1 --~--~-~--~~~---~--~~ 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 thi

Re: Question

2007-06-13 Thread Joshua Benner
If you're talking about porting a current application to CakePHP -- sure, it's doable -- but the time and effort factor depends largely on how the original application is written, and you level of understanding of the CakePHP framework. I'd say your first steps should be focused around determ

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Joshua Benner
es not mean that the semantics of the associations CakePHP applies are incorrect, but perhaps from a different perspective. -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: highly customized web sites

2007-06-12 Thread Joshua Benner
t; or thats the right way? > > and moreover, can all this be done within a plugin? > > ZendFramework 0.9 nor CodeIgnite can do it.. i trust in cake.. > my system now have plugins with autoinstaller (zip + sql) an auth > module with granular acl > multilanguage support and some

Re: Stuck - Join limitation in 1.2?

2007-06-12 Thread Joshua Benner
t find a > way to express that the field in Person to use for the join is > country. > > Checking the archives, floepi posted a tweak back in January to add an > associatedKey attribute for $hasOne to express this notion, but I > wondered whether something like

Re: Architecture point of view

2007-06-12 Thread Joshua Benner
be just plain integration with cake's command-line shells (bake) > would be nice && quite easy way. > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: Architecture point of view

2007-06-12 Thread Joshua Benner
gt; generate stubs with a tool. Now, I saw cakePHP will generate all the > code so I wonder how this kind of development could be relationated > with the usual systems design. > > How could I transform all muy UML diagrams and my analysis in a > cakePHP application ? > > > T

Re: Your choice of editor for PHP

2007-06-12 Thread Joshua Benner
t; What are you using for a PHP editor/IDE?. > Cheers. > > Dna > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" grou

Drake, Cake, and Templating

2007-06-11 Thread Joshua Benner
seems to save (me) time vs Smarty when working on a project. -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to c

Re: How to make call to helpers classes and others

2007-06-11 Thread Joshua Benner
gued now, thinking about the possibilities :-) > > On 6/11/07, *Joshua Benner* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > We make use of Drake fairly extensively on our organization's > intranet, > and I use the Drupal API a

Re: How to make call to helpers classes and others

2007-06-11 Thread Joshua Benner
ccess to, etc. Jonathan Langevin wrote: > My understanding is the same as Joshua. It's a bridge that allows > Joomla access to the Cake applications/api, and Cake access to the > Joomla applications/api. > To completely replace the Joomla api, that would seem to be pretty > c

Behavior afterFind on associated Model

2007-06-11 Thread Joshua Benner
queried as a result of an association. I may be confused on this, though. Any help? -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro

Re: How to make call to helpers classes and others

2007-06-11 Thread Joshua Benner
la-and-cakephp/http://dev.sypad.com/projects/jake/ >> << official home of Jake? >> >> On 6/11/07, Joshua Benner <[EMAIL PROTECTED]> wrote: >> >> >> >> >>> I know there is a Joomla extensions that integrates Cake (called Jake I >>

Re: Re autocomplete using ajax

2007-06-11 Thread Joshua McFarren
Get Started With AJAX in CakePHP: http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Re: How to make call to helpers classes and others

2007-06-11 Thread Joshua Benner
is appreciated. > > Thanks > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: When to upgrade to 1.2 from 1.1?

2007-06-11 Thread Joshua Benner
ading to 1.2? I've always been about > "bleeding edge" software, but since 1.2 is still in alpha status, it > wouldn't suggest it's very stable quite yet, especially with the > possibility of major code changes before it hits final. > > Any though

Re: Things to update in blog_tutorial (using 1.2 )

2007-06-11 Thread Joshua Benner
because > this $html methods are deprecated (Same as point 1) > > But is working so far. Love it. > > If there are more Cake examples around there, and I would love to see > AJAX thingies / REST apps / APIs and such, please post a reply or > point me to some URL's. &

Re: Code/Look Up Tables (What is the best practice?)

2007-06-09 Thread Joshua Benner
gt; I'm guessing there's an easier way to do this with cakePHP that I just > haven't discovered. Someone please enlighten me. > > Thanks! > Chris > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~

Re: Advice on powering a high-traffic site

2007-06-08 Thread Joshua Benner
e) of your > app you really need in during of every request > > Etc etc. > > Or even better: ask Cake Software Foundation for review of your > application. > > > > > -- Joshua Benner http://bennerweb.com --~--~-~--~~~---~--~~ You

Re: How to build a category-subcategory menu?

2007-06-08 Thread Joshua Benner
(255) collate latin1_general_ci NOT NULL, > PRIMARY KEY (`id`) > ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci > AUTO_INCREMENT=2 ; > > CREATE TABLE `subcategories` ( > `id` int(11) NOT NULL auto_increment, > `cat_id` int(11) NOT NULL, > `name` varchar(

Re: Three table connection

2007-06-08 Thread Joshua Benner
iumtext NOT NULL, > PRIMARY KEY (`id`) > ) > > CREATE TABLE `answers_questions` ( > `answer_id` int(11) NOT NULL, > `question_id` int(11) NOT NULL, > `order` int(11) default NULL, > PRIMARY KEY (`answer_id`,`questi

Re: share config across multiple apps

2007-06-07 Thread Joshua Benner
I haven't tried this yet, but I've considered using symlinks to share resources among applications on the same server. Tim wrote: > Hi, > > I have a server where I'd like multiple applications to share not only > the same core cake libraries but also the same core.php and > database.php configur

Re: CakePHP sessions performance

2007-06-07 Thread Joshua Benner
Chris Hartjes wrote: > On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Thanks for the info. >> My assumption (unfounded apparently) was that accessing data in the >> session >> when stored in the database would require round trips to the database >> which is slower than accessing t

Re: Cake, Eclipse and PDT (long - warning: includes rant)

2007-06-07 Thread Joshua Benner
Chris Lamb wrote: > Joshua Benner wrote: > > >> As far as having multiple java installations, do some reading about the >> "alternatives" system -- perhaps start with 'man alternatives' >> > > The "alternatives" is a feat

Re: Additional layout placeholders?

2007-06-07 Thread Joshua Benner
I agree, I've found elements to be an excellent way to reproduce content on multiple pages. In the series of applications we're working on now, the default layout displays an element that produces navigation based on data obtained from the controller (tabs across the top). Chris Hartjes wrote: >

Re: Additional layout placeholders?

2007-06-07 Thread Joshua Benner
If I understand what you're saying... the only "built-in" content variable is $content_for_layout which comes from the output from the currently-executing view. However, layouts have access to the variables that you set in your controller with $this->set() -- so you may be able to achieve the

Re: problem with htmlhelper in cakephp blog tutorial

2007-06-07 Thread Joshua Benner
Many of the HtmlHelper functions moved or reincarnated in FormHelper. The 1.2 Api has been my primary source of comfort in learning CakePHP. Hans wrote: New here to CakePhp, really excited since this is exactly what i´m looking for! (writing endless repititive/boring code became a big dem

Re: Cake, Eclipse and PDT (long - warning: includes rant)

2007-06-07 Thread Joshua Benner
Eclipse with PDT on Linux has been my primary developing environment for CakePHP for months -- VERY smooth. I rarely install the distribution-specific packages for eclipse, because they like to put files all over the system, whereas an eclipse download is all in the eclipse folder. As far as havi

Re: Is there a way to get a list of controllers in the cake system

2007-06-07 Thread Joshua Benner
I supposed you could base it off of the contents of the controllers folder. igor'OK wrote: > I have situation when i need to have a list of all controllers, to > generate menu to access all of them > Currently i keep custom array with the list of already created > controllers, but this way is not

Re: General gripes and questions

2007-06-06 Thread Joshua Benner
Um... accountability? Did you hire the Cake team? Are they responsible to you in any way? This is their project that they've chosen to share with people. The CakePHP developers are not accountable to anybody but themselves. If you've made decisions that have put you in a bad scenario because o

Re: Help with hasAndBelongsToMany Association Between Two Models - Team and Game

2007-06-06 Thread Joshua Benner
Wole, Understanding the differences between the relation types can be a little difficult at first. I still struggle with remembering, because it can make sense semantically either way! :) My rule of thumb is this: - If a table record "has" another record, the foreign record points to this re

Re: General gripes and questions

2007-06-06 Thread Joshua Benner
That's generally a point made against Open Source -- except that closed source stuff gets pushed back all the time, and is released very buggy. In my experience, when there's a bug in Open Source, we can either fix it or get it fixed within 48 hours -- closed source, we're lucky if our vendors

Re: Is Behavior Appropriate?

2007-06-05 Thread Joshua Benner
I've posted the code at http://bennerweb.com/node/15 On Jun 4, 1:45 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > I'm working with CakePHP with an SQL Server backend to great success. > One of the hiccups I've encountered, however, is the way that SQL > Server outp

<    1   2   3   4   5   >