Re: Problems with AppController inheritance

2010-06-24 Thread rtconner
http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess Also, really double check your database.php file. 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

Re: Problems with AppController inheritance

2010-06-23 Thread rtconner
I would highly doubt this is a problem with the code. More likely it's some server setting. Check your php.ini make sure its correct, and also make sure apache settings are configured correctly. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Problems with AppController inheritance

2010-06-23 Thread rtconner
Also, make sure the database is setup correctly and you have the correct database.php file in the config folder. 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

Re: CakeFest IV - America - Help us pick a location!

2009-12-22 Thread rtconner
I vote for Vegas. That's one of the few place I could show up to. I'm guessing there are cheap flight in/out of there for most cities around the country. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

Re: Newbie - issue with layout default.ctp

2009-10-28 Thread rtconner
should work as is. you are a bit weak on details, but perhaps something is causing the default layout not to be used? perhaps put var $layout = 'default'; in your controller? On Oct 27, 10:40 pm, Jennifer jennifercbonn...@gmail.com wrote: I have created a new template file, called it

datasourcePaths?

2009-04-07 Thread rtconner
Do I have it right that there is $modelPaths, $behaviorPaths, $controllerPaths, $componentPaths, $viewPaths, $helperPaths, $pluginPaths, $vendorPaths, $localePaths, and $shellPaths... but no datasourcePaths? Fun. --~--~-~--~~~---~--~~ You received this message

Re: set(compact('whatever'))

2009-01-27 Thread rtconner
I think the issue is PHP and not Cake. To demonstrate the problem, try this... public function setStuff($foo, $bar, $something_else) { $foo = $foo; $bar = $bar; $something_else = $something_else; $this-controller-set(compact('foo', 'bar', 'something_else')); } And I have no idea why

Re: containable and (left/inner) JOINS

2009-01-19 Thread rtconner
I think you misunderstand what the containable does. Your complaint is with model bindings in general, and not with this behavior. In any case, I'll leave you to expiriment and learn, but I wanted to tell you, to do an inner join in cake you use the config.. 'type'='INNER' in your binding

Re: problem with the API?

2009-01-19 Thread rtconner
Yeah, I agree. 'beforeFind' does not come up with any results of the method beforeFind. It's a bit strange, especially given that it's worked well for so long. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: new benchmarks of PHP frameworks

2009-01-02 Thread rtconner
CakePHP is a developers framework, true, its inherently going to be slower than pure HTML etc; indeed.  What has me shaking my head is looking at all the other frameworks going from 1.x to 2.x increasing their performance with each major release whereas we've gone backwards at a 1:2 (1:4 in

Re: CakePHP and Extjs

2008-12-01 Thread rtconner
doing an App::Import gives you some advantage? Less code. You don't need any component like you have written. Also, one thing I don't see which you should think about.. what if you don't want to display all of the fields of the Model, maybe just some of them, or what if you want some columns to

Re: Error: Database table tr_instuctors for model Instructors was not found.

2008-12-01 Thread rtconner
just do var $useTable = 'tr_instuctors' in the model. On Nov 30, 5:37 pm, Billes [EMAIL PROTECTED] wrote: So just started using CakePHP, and i'm getting this error: Error:  Database table tr_instuctors for model Instructors was not found. As you may notice, tr_instuctors is spelled wrong,

Re: Cake Stalling (or blocking)

2008-12-01 Thread rtconner
On Dec 1, 4:00 pm, Elricho [EMAIL PROTECTED] wrote: Good suggestion. I'll uncake this component into a php script and run that way. FYI you can still use cake, cake does crons very well. Look it up in the docs/bakery. --~--~-~--~~~---~--~~ You received this

Re: CakePHP and Extjs

2008-11-29 Thread rtconner
I have my own Ext helper. I'm not sure if I'll release it or not, but I've found it best just to spit out the code needed to generate the given Ext component, and not worry about onReady, etc.. Also, your implementation depends on passing in the modelFields, which is probably the MVC way to go.

Re: cake tmp files and subversion

2008-11-29 Thread rtconner
The powers that be in cake frown upon that, but I do the exact same thing as you, and it works well, so I've kept with it for years now. On Nov 28, 9:36 pm, php.baker [EMAIL PROTECTED] wrote: Thanks Adam. I was able to confirm on the TortoiseSVN group that global ignores will not work as I

Re: paid consultancy/development/advice

2008-11-29 Thread rtconner
withcake.com On Nov 25, 6:31 am, stewsnooze [EMAIL PROTECTED] wrote: Hi, I'm interested in finding out whether we could get someone from the community to help on an existing application an agency built for us which we want to extend and also run well.  The help could range from advice,

Re: Filter on BelongsTo relationship

2008-11-29 Thread rtconner
You have to use an INNER join. var $belongsTo = array( 'Competition' = array('className' = 'Competition', 'foreignKey' = 'competition_id', 'type' = 'INNER' ) );

Re: no database table

2008-08-27 Thread rtconner
var $uses = array() On Aug 27, 1:53 pm, BiraRai [EMAIL PROTECTED] wrote: How to does one tell cakephp controller not to use a database table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: A find('list') question.

2008-08-26 Thread rtconner
what field you want to populate the view part with? anyways .. $this-displayField = 'name'; $this-find('list'); On Aug 26, 11:37 am, Michael [EMAIL PROTECTED] wrote: First, I am rather new to cakephp and still getting my head around some of its ideas. So, I am working on getting a posting

Re: Is this a crazy phbBB3 CakePHP idea?

2008-08-19 Thread rtconner
Yes you can do that, no problem. Just gotta use the $useTable var in the models. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: $html-textarea displaying actual html codes

2008-07-09 Thread rtconner
really? i guess you could do htmlspecialchars($form-textarea(...)); On Jul 9, 1:53 pm, Vixy [EMAIL PROTECTED] wrote: Hello, I just started using cakePHP and im working on a social netowrk with it. The problem is, when i put html codes in the $html-textarea fields, it actually outputs the html

Re: What is the difference in Model::getLastInsertID() and Model::getInsertID()

2008-05-13 Thread rtconner
Oh cool. That is a nice update. On May 13, 12:12 pm, Gwoo [EMAIL PROTECTED] wrote: use $this-Model-id. You do not need those other methods. The model is set to the proper id after a save. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Admin Homepage Troubles

2008-03-09 Thread rtconner
Router::connect('/admin', array('controller' = 'dashboard', 'action'= 'index', 'prefix'='admin')); On Mar 8, 5:53 pm, Kyle Decot [EMAIL PROTECTED] wrote: I have turned on admin routing and I have put the following in my routes.php file: Router::connect('/admin', array('controller' =

Re: Trailing Whitespace Prevented a Session From Being Started

2008-03-07 Thread rtconner
FYI, It might be a good practive not to use the '?' to close off your php files. PHP closes when it hits the EOF anyways. I've seen some projects that do this, it works well. On Mar 7, 3:50 pm, Guy Rutenberg [EMAIL PROTECTED] wrote: Hi, I've came across a problem (which was completely my

Re: Model-find('list') with conditions

2008-03-06 Thread rtconner
-find('list', array('conditions'=$conditions)) On Mar 6, 11:43 am, Greg Baker [EMAIL PROTECTED] wrote: Anybody know how to use Model-find('list') but supply conditions to that? Or Anybody know how to generate a similar list using another method so I can use conditions?

Re: Checking user session in model

2008-03-06 Thread rtconner
global $SESSION; $SESSION = $this-Session; screw this not getting at the session from the model crap, there are exceptions to every rule and this is one of them On Mar 6, 6:33 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Auth should go in controller, that said you can assign the session

Re: Checking user session in model

2008-03-06 Thread rtconner
Ya Novice Programmer, don't listen to me. It's not recomended. Nate: You be happy to know, one of my favourite bootrap functions .. function user($key = null) { global $AUTH_COMPONENT; return $AUTH_COMPONENT-user($key); } --~--~-~--~~~---~--~~ You received

Re: Too much automagic??

2008-02-25 Thread rtconner
If you are putting things into $this-data - yeah that is where cakes magic is. Cake has claimed the variable data as it's own. If you don't like the automagic, then just dont use $this-data. Code like that below works very well for me, when I dont want to use the automated for filling. $user =

Re: count

2008-02-25 Thread rtconner
What version of cake. I think you are going to have to use the 'with' association. $this-Tag-(WithModel)-findCount(array('tag_id'=$tag_id)); On Feb 25, 8:35 am, roryy [EMAIL PROTECTED] wrote: hi I have a question about counting fields. I have these tables: tags, posts and posts_tags, does

Re: Loading a Model from a Behavior

2008-02-25 Thread rtconner
App:import is very new in the most recent versions of cake (last month maybe). loadModel was indeed used full time before that for this task. On Feb 25, 4:00 pm, boyracerr [EMAIL PROTECTED] wrote: Thanks; I've tried that before, but I get: Fatal error: Class 'App' not found I've had to rely

Re: Javascript function in a rendered ajax view

2008-02-25 Thread rtconner
you using this syntax.. ? myfunction = function(param) { ... } On Feb 25, 3:49 pm, francky06l [EMAIL PROTECTED] wrote: Hi all, I am messing around for a while trying to set a javascript function in a view rendered with ajax call. I have played around with the cacheEvents, codeBlock

Re: HABTM with associations

2008-02-25 Thread rtconner
Jim, if you are new to cake.. nate is like that with everyone.. don't take it personal. --~--~-~--~~~---~--~~ 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: Session and cake

2008-02-25 Thread rtconner
$this-Session-active() should fix your problem. On Feb 25, 3:35 pm, Paolo [EMAIL PROTECTED] wrote: Hi all! I created a simple user authentication form, using session. The user must insert name and password and then if these correspond to a know combination the user is logged in. To check if

Re: General HABTM question

2008-02-23 Thread rtconner
You got it right. --~--~-~--~~~---~--~~ 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: CakePHP v1.2 stable enough for production?

2008-02-23 Thread rtconner
I am a long time user of 1.2... let me say.. It changes so often, and there are so many bugs that sometimes 1.2 is a real pain. The bugs don't cause things not to be secure though.. they are just things that flat out don't work that you think are supposed to work. But on the other side... The

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread rtconner
://trac.cakephp.org/browser/branches/1.2.x.x/cake/tests/cases/li... When has this not proved sufficient? Do you have a specific example? On Feb 21, 6:51 pm, rtconner [EMAIL PROTECTED] wrote: I have no found a good way to do GROUP BY queries or INNER JOIN's in cake. Was wondering if any of you

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread rtconner
and in your find do a condition: Where Dummy.id IS NOT NULL... On Fri, Feb 22, 2008 at 12:37 PM, rtconner [EMAIL PROTECTED] wrote: Re: GROUP BY, Yeah.. sometimes with group by you have to prepend DISTINCT to the primary key to prevent duplicates. I can try to find a query example if you

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread rtconner
ya, but if that type option is supposed to work .. blah ... should continue this in trac? https://trac.cakephp.org/ticket/4085 On Feb 22, 3:51 pm, Baz [EMAIL PROTECTED] wrote: Didn't I just post an alternative? On Fri, Feb 22, 2008 at 2:33 PM, rtconner [EMAIL PROTECTED] wrote: I can't

Re: checking session in views

2008-02-21 Thread rtconner
Oops.. I read your question wrong. Cake uses the Session for other things besides your login data. For example flash messages are stored in the Session also. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: checking session in views

2008-02-21 Thread rtconner
$_SESSION is a php construct. Cake can't do anything to stop you from using it. Not that you should use it. You should use the Session component whenever possible. But if it's not, I think you can get away with things like echo $_SESSION['User']['username'] if you've stored

Two things I have not seen support for in Cake (group by and inner join)

2008-02-21 Thread rtconner
I have no found a good way to do GROUP BY queries or INNER JOIN's in cake. Was wondering if any of you have come across these and how you handled them. I have not been able to do either of them in conjunction with the find() method in any normal way.Perhaps I am missing something? I'd love to

Re: Are reflexive relation impossible with CakePHP ?

2008-02-21 Thread rtconner
why not just use findAllThreaded() ? --~--~-~--~~~---~--~~ 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: newbie : want 2 pagination on a same page of same table

2008-02-20 Thread rtconner
you need to make two models (one for each type of user). then paginate 2 models on one page as you would normally paginate two models on one page. On Feb 21, 12:19 am, manuj [EMAIL PROTECTED] wrote: I have one table name users In this I like to paginate two different users list one is from

Re: bakery article publishing - how long does one need to wait?

2008-02-18 Thread rtconner
Usually it's Mariano, he's approved most of my articles. Though, I think gwoo approved one of them. On Feb 18, 10:21 am, Chris Hartjes [EMAIL PROTECTED] wrote: On Feb 18, 2008 12:17 PM, dr. Hannibal Lecter [EMAIL PROTECTED] wrote: As far as I can understand it, comments can be moderated,

Re: $criteria pagination

2008-02-10 Thread rtconner
What version o'cake? Anyways.. you want the $scope parameter on paginate http://api.cakephp.org/1.2/class_controller.html#6f79c1eed018894aede112c294087345 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Cache in 1.2 (Cake and App dirs outside of webroot)

2008-01-31 Thread rtconner
Cake has changed the config a bit. So if you've just upgraded.. make sure you upgrade your config file in the app also. This is the default on a new cake install... Cache::config('default', array('engine' = 'File')); --~--~-~--~~~---~--~~ You received this

Re: Pagination and search.

2008-01-27 Thread rtconner
http://bakery.cakephp.org/articles/view/advanced-pagination-1-2 On Jan 27, 10:56 pm, bhushan A [EMAIL PROTECTED] wrote: Hi all I have achieved 'pagination' and 'search' differently. Means when i am putting my search criteria in text field then records are getting displayed as per search

Re: How do I bake?

2008-01-26 Thread rtconner
tutorial is a bit old. As far as I know.. now (with 1.2) you have to add /cake/console to your operating systems global path. Then anywhere on your system you can just type cake bake to bring up the console and bake the app of whatever folder you are in.

Re: not sure whats best practice: recursiveness

2008-01-24 Thread rtconner
As far as I know.. best practice is to use unbindmodel() to unbind product from comment right before you do the read() On Jan 24, 12:35 pm, Buckyball [EMAIL PROTECTED] wrote: Hello to all, just started to play around with cake and I like it. Now I stuck a little concernig accociations and

Re: problems generating a custom 404

2008-01-23 Thread rtconner
not sure if this is the best way.. but it is *a* solution. just put this in app/error.php ?php class AppError extends ErrorHandler { function error404($params) { header('location: http://new404url.com'); exit; } } --~--~-~--~~~---~--~~ You received

Re: Moved CakePHP 1.2.x from unix to windows, weird directory problem?

2008-01-23 Thread rtconner
It's stored in cakes cache. You gotta go through your tmp directory and delete all the files in it. But don't delete the folders because cake won't re-create the folders, but if the folders are missing cake won't work properly. --~--~-~--~~~---~--~~ You received

Re: Auth Component encrypting password before validation.

2008-01-18 Thread rtconner
Ya I had this out with nate already. I've given up. I think my solution was to set the hash type to none. https://trac.cakephp.org/ticket/3364 On Jan 18, 1:38 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 18, 2008 3:32 PM, rtconner [EMAIL PROTECTED] wrote: This particular issue

Re: Auth Component encrypting password before validation.

2008-01-18 Thread rtconner
I'll just say, I love any and all complaints about that auto hashing thing. I think it's silly and annoying and shouldnt be part of cake. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Re: Auth Component encrypting password before validation.

2008-01-18 Thread rtconner
. It's not compiled code; it's PHP. If you don't like it, open up the bloody file and hit the delete key move on. -- Baz L Web Development 2.0http://WebDevelopment2.com/ On Jan 18, 2008 1:31 PM, rtconner [EMAIL PROTECTED] wrote: I'll just say, I love any and all complaints about that auto

Re: Auth Component encrypting password before validation.

2008-01-18 Thread rtconner
Np :) I wouldn't expect you to read every little rejected bug report on trac. On Jan 18, 1:45 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Jan 18, 2008 3:43 PM, rtconner [EMAIL PROTECTED] wrote: Ya I had this out with nate already. I've given up. I think my solution was to set the hash

Re: HABTM Save - Something with cake or me?

2008-01-17 Thread rtconner
Oh and this is on the latest svn beta. --~--~-~--~~~---~--~~ 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

HABTM Save - Something with cake or me?

2008-01-16 Thread rtconner
So why doesn't this work? I made a paste to explain what is wrong, but if it expires I'll puts my paste below... http://bin.cakephp.org/view/217319035 === /* It's very simple - Tip HABTM Category. Behavior I get is -If I select a category, it will get added to the HABTM

Re: modified_by , created_by ...

2008-01-15 Thread rtconner
This blog post might be worth your time. http://www.ad7six.com/MiBlog/TrackWhoMakesDBChanges On Jan 15, 12:21 pm, DJ Spark [EMAIL PROTECTED] wrote: Hi, Every model in my project does have a 'created_by' and 'modified_by' field, storing some user ID. Currently, I'm using a controller

Re: modified_by , created_by ...

2008-01-15 Thread rtconner
No Cake Approved method at least. I have my own solution to this, I made the my auth component a global and have a function to access the current logged in user data from anywhere (view, helper, or model). I know many would frown on this, but it has made developement very easy for me. I care

Re: saveAll function not saving

2008-01-12 Thread rtconner
Lol, Nate - you are harsh. If you were a high school teacher when i integrated by parts, i could not simplify it enough ahahaha you moron, if you simply used substitution you would have found the anti derivative and would have easily solved it *student sobs* On Jan 12, 7:52 pm, nate

Re: converting loadModel to App::import

2008-01-10 Thread rtconner
I dunno why it says App::import. I believe (from whay I know) you should be using ClassRegistry::init now. On Jan 10, 6:15 am, lordG [EMAIL PROTECTED] wrote: Hi Conankun, Did you get a solution to this? Sounds like the App class is not being loaded (sorry for stating the obvious i think).

Re: Need some help with advanced pagination

2008-01-08 Thread rtconner
If nothing else you can manually write some queries and implement them by overwriting the pageinate and paginateCount methods in the model. I can't reallly think of a better way to do this at the moment. On Jan 8, 9:55 am, Chris Hartjes [EMAIL PROTECTED] wrote: Normally I don't post questions

Re: Environment settings

2008-01-08 Thread rtconner
Yeah if anyone find's a great way to do this .. lemme know. For me, I just toss some if statements into my config that recongnize the url and pick a db config based on it. Not the best idea.. I know. I think *best* case scenario is to not commit the database config file. And have deploy scripts

Re: I would like to have a wiki on cakephp.org

2008-01-07 Thread rtconner
A comments section on the Docs pages is enough for me. Any info missing by the docs themselves can be filled in as users leave comments. I asked John about this once, he said they've got it covered. So now.. just gotta wait for the official docs system to get released. I suppose that'll be out

Re: scripts for layout in cake 1.2

2008-01-07 Thread rtconner
Perhaps this bakery article will help you. http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: Did component behaviour change on 1.2 beta ?

2008-01-07 Thread rtconner
You sure that code ever worked? Or better yet, did you post all of your code? That should not have worked on any version of cake that I am aware of. In any case.. add this method to the component, and I think you'll be ok. function initialize($controller) { $this-controller = $controller; } On

Re: Did component behaviour change on 1.2 beta ?

2008-01-07 Thread rtconner
checking component.php's source code and the init() function. Thanks a lot On Jan 7, 1:56 pm, rtconner [EMAIL PROTECTED] wrote: You sure that code ever worked? Or better yet, did you post all of your code? That should not have worked on any version of cake that I am aware of. In any case

Re: scripts for layout in cake 1.2

2008-01-07 Thread rtconner
Yep, NP. This is functionality that IMO should be in the cake core. But, what do I know? On Jan 7, 11:57 am, cmbg [EMAIL PROTECTED] wrote: Thanks! This is very helpful! On Jan 7, 10:54 am, rtconner [EMAIL PROTECTED] wrote: Perhaps this bakery article will help you. http

Re: I would like to have a wiki on cakephp.org

2008-01-07 Thread rtconner
Seems to work well for php.net. Well I think they call it notes. On Jan 7, 2:31 pm, Kjell Bublitz [EMAIL PROTECTED] wrote: Hmmm... I have a problem with a comment-function. Comments encourage discussions - Discussions have nothing to do with documentation. If theres a comment function it

Re: How do I add a helper to an element

2008-01-07 Thread rtconner
two things.. 1. If the view can see it, so can the element 2. if this is an element you are going to use all over the place (multiple controllers) you might as well just add the helper to app_controller class. On Jan 7, 4:22 pm, DrLaban [EMAIL PROTECTED] wrote: Hello all! I've been doing

Re: How do I add a helper to an element

2008-01-07 Thread rtconner
To respond to your email... There should be a file: /app/app_controller.php If it does not exist, copy it from the cake folder. Inside that class declare the helper that you wish to use. From there that helper should be available in all controllers.

Re: multiple records

2008-01-04 Thread rtconner
Nevermind, got it. ?=$form-text('1.name');? ?=$form-text('Product.1.name');? Glad to finally have this functionality :D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

multiple records

2008-01-04 Thread rtconner
Anyone have a quick example of how to use the new multiple records features? --~--~-~--~~~---~--~~ 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: multiple records

2008-01-04 Thread rtconner
Nevermind, got it. ?=$form-text('1.name');? ?=$form-text('Product.1.name');? along with $this-Product-saveAll($this-data); Glad to finally have this functionality :D I still gotta figure how validation works with this though. --~--~-~--~~~---~--~~ You received

Re: controller or behavior?

2008-01-04 Thread rtconner
Use a component. Use the startup or initialize functions in the component to auto run some code every time the component is loaded. Both have access to the controller and all data sent to it (if you do things right). On Jan 4, 10:45 am, Daniel Mark [EMAIL PROTECTED] wrote: Quick question.. I

Re: Why doesn't Find* return a group of model objects?

2008-01-04 Thread rtconner
One time gwoo wrote some quick code that would make find return objects instead of arrays. I turned it into a behavior. Seemed to work pretty well at the time. It should still work (not sure though, because of all the recent changes to cake core). Give it a try.

Re: saveAll method in cakephp 1.2

2008-01-04 Thread rtconner
http://groups.google.com/group/cake-php/browse_thread/thread/d097212f45f9f5ab --~--~-~--~~~---~--~~ 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: CakePHP 1.2 primary key suggestions

2007-12-14 Thread rtconner
You might need to use updateAll and deleteAll a lot. I'm not 100% sure but I think the normal save() method should still work without a primary key. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: a lot of the features that make rails so cool are totally missing in cake :(

2007-11-28 Thread rtconner
Luke, Generally I use Bake as a starting point. I bake all my CRUD, and then customize look and feel and behavior. Rarely do I have a site that fits square onto a CRUD setup, there are always little behaviors and things that need fixing up. --~--~-~--~~~---~--~~

Re: Dynamic table

2007-11-26 Thread rtconner
If it was me, I'd have a Model with no table attatched and then add a function to create the tables in it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: suggestion for cake query

2007-11-26 Thread rtconner
In theory the following code should work. I don't know if it will or not though, because I'm not sure how deep you can set the recursive flag. OrderProduct=recursive = 4; OrderProduct-find(array(OrderProduct.fromDate '2007-10-01', 'Group.id'=3)) On Nov 26, 11:15 am, keymaster [EMAIL PROTECTED]

Re: Behaviours - Session data

2007-11-22 Thread rtconner
not be tied to the session, and *I think* doing so is a hack. What happens when you want a process to be accessible from command line, or a cron job? On Nov 22, 3:01 pm, rtconner [EMAIL PROTECTED] wrote: Ya Grant not to argue with you, but if you are going to make a statement like that, you make

Re: Behaviours - Session data

2007-11-21 Thread rtconner
Ya Grant not to argue with you, but if you are going to make a statement like that, you make me think you have not done much cake programming. (Though for how long you've been around I'll assume otherwise) I need data from the session in the models all the time. It's usually a modified_by or

Re: recursive = 3

2007-11-20 Thread rtconner
No one else has ever had this problem? Odd. Three people in my office have come across this same thing. None of us could find a cake way to solve it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: recursive = 3

2007-11-20 Thread rtconner
Uhm.. Creata Model Create a second model and HABTM relate them Then create a Third mode and HABTM relate it to the second one. On the first model, set recursive = 3 and do a find. Note how data from the third model is not there. --~--~-~--~~~---~--~~ You received

Re: A Newbie Question

2007-11-20 Thread rtconner
http://www.ad7six.com/MiBlog/Blogs/view/Trees --~--~-~--~~~---~--~~ 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

recursive = 3

2007-11-16 Thread rtconner
Why does this not pull the related HABTM data of a HABTM relation? Recursive = 4 or 5 or 6 or whatever does not help. This is really sticking in my craw. Right now I have to loop through the related HABTM relation and for each one find its HABTM related items. Is this the only way?

Re: $this-Session and cookies

2007-11-08 Thread rtconner
Yeah somehow.. you gotta find a way to pass the SESSION ID around in urls. No idea if cake has built in support for this. On Nov 8, 7:28 pm, Steve Boyd [EMAIL PROTECTED] wrote: Is it possible to use $this-Session properly if the user doesn't have cookies enabled?

Re: Using models with plugins in CakePHP 1.2

2007-11-07 Thread rtconner
I think you have to do.. $uses = array('Pluginname.Modelname'); On Nov 7, 10:54 pm, Aaron Shafovaloff [EMAIL PROTECTED] wrote: I have a plugin which has two models of its own. I've followed the directions to creating a plugin to the T. In the plugin's own app_controller file I have the

Re: Multiple $content_for_layout

2007-10-31 Thread rtconner
I'm pretty sure this Helper will help you guys out.. http://bakery.cakephp.org/articles/view/anything_for_layout-making-html-from-the-view-available-to-the-layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: findAll query is ignoring HABTM associations

2007-10-25 Thread rtconner
You want to search Pieces and list the lessons related to those pieces? $this-Lesson-Piece-recursive = 1; $this-Lesson-Piece-findAll(array(Piece.name LIKE '%asd%')); or to just get all lessons and thier related pieces $this-Lesson-recursive = 1; $this-Lesson-findAll(); On Oct 25, 11:47 am,

Re: CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread rtconner
Oh. I was wondering... On Oct 23, 11:14 am, Gwoo [EMAIL PROTECTED] wrote: You will see the belongTo and hasOne. If you dont want anything use $this-User-recursive = -1; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: dynamic db connection | $useDbConfig

2007-10-22 Thread rtconner
http://api.cakephp.org/1.2/class_model.html#d45dbbc6a13d9921731abf738623bb01 On Oct 22, 2:24 pm, carSign [EMAIL PROTECTED] wrote: Is there a way to change the config variables inside my model on the fly. For example. If a user visits: http://www.example.com/videos/rent/toy_story the

Re: admin routing question

2007-10-20 Thread rtconner
gratzi On Oct 19, 5:41 pm, AD7six [EMAIL PROTECTED] wrote: On Oct 20, 1:03 am, rtconner [EMAIL PROTECTED] wrote: Does anyone know, is there a way to code the following behavior typinghttp://site.com/adminrouteintothe browser will render a 404 then i set up apache to directhttp

admin routing question

2007-10-19 Thread rtconner
Does anyone know, is there a way to code the following behavior typing http://site.com/adminroute into the browser will render a 404 then i set up apache to direct http://admin.site.com to point to the admintroute folder and this is where the admin stie would reside. thanks, rob

Re: How to paginate HABTM results?????????

2007-10-15 Thread rtconner
What version of cake? Nate left this code for 1.2: http://bin.cakephp.org/saved/21687 --~--~-~--~~~---~--~~ 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: 1.2.5750?

2007-10-12 Thread rtconner
You couldn't read 6 posts down even? It's still on the first page. On Oct 12, 1:40 pm, j-rod [EMAIL PROTECTED] wrote: Just saw this version 1.2.5750 in the API section. Does this mean there will be a new release soon? --~--~-~--~~~---~--~~ You received this

Re: Share Models between applications

2007-10-11 Thread rtconner
Yeah he's got it, the modelPaths variable in bootstrap is what you'll want to use. On Oct 11, 2:36 pm, kanian [EMAIL PROTECTED] wrote: On Oct 11, 9:04 pm, Tulio Faria [EMAIL PROTECTED] wrote: I mean using the same model files :) On 11 out, 11:01, [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: Put repeatedly rendered view in a single page

2007-10-10 Thread rtconner
I'm thinking elements are what you should be using here. Probably would be best practice. On Oct 10, 12:00 pm, Steveston [EMAIL PROTECTED] wrote: I am rendering a view through $this-render('Summary'); (That view is a html table). After rendering, I will get a complete HTML page. Now, I want

Re: public function, but not action

2007-10-09 Thread rtconner
use an underscore... _functionName() {} On Oct 9, 12:43 pm, stefanb [EMAIL PROTECTED] wrote: Hi, How can I specify that a public function in a controller should NOT be an action? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

  1   2   3   >