containable trouble

2009-04-20 Thread Günther Theilen
Hi, I've got a bit of a problem with the containable behaviour: There are three models: A hasMany B B HABTM C A actsAs containable Now in a method of the A model I'd like to do a query which gets me the rows from A with the according rows from B _and_ the data from C belonging to each B. But

Re: DB driven sidebars

2009-04-20 Thread zhuang
Great job. I am checking NeurinoCMS out now. On Tue, Apr 21, 2009 at 1:15 AM, Braindead wrote: > > You can use a component to fetch sidebar data from the database. > > Have a look at NeutrinoCMS, a cake based CMS: > http://dsi.vozibrale.com/downloads/categories/view/neutrinocms > > > --~--~

Re: DB driven sidebars

2009-04-20 Thread Braindead
You can use a component to fetch sidebar data from the database. Have a look at NeutrinoCMS, a cake based CMS: http://dsi.vozibrale.com/downloads/categories/view/neutrinocms --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

trouble with Media view

2009-04-20 Thread brian
Media view keeps throwing up a 404 because of the following code: if (is_dir($path)) { $path = $path . $id; } else { $path = APP . $path . $id; } if (!file_exists($path)) { header('Content-Type: text/html'); $this->cakeError('error404'); } Here are my params, btw

Security component and AJAX

2009-04-20 Thread Dave Maharaj :: WidePixels.com
I have just been messing around with my app and changing values in Ajax links with Firebug to see what happens...sure enough I can be logged in as user 1 and thru an Ajax form delete a post by User 2. Been reading about the Security Component but seems from what I have found is that it does not wor

Re: MeioUpload Problem

2009-04-20 Thread Arak Tai'Roth
Yup, the exact same permissions as the banners directory On Apr 20, 4:09 pm, brian wrote: > Are the permissions for the posters dir good? > > On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth > wrote: > > > So I have my MeioUpload set up: > > >                var $actsAs = array( > >              

Re: Smarty not filtering

2009-04-20 Thread timtrice
I see I have files in my 'tmp/smart/compile' directory. I don't know if that helps narrow it down...hopefully On Apr 20, 5:06 pm, timtrice wrote: > Miles, > > I've avoided using Smarty in Cake for almost a year, now.  But I have > an application that has become rather tiresome to sort thorugh w

Re: DB driven sidebars

2009-04-20 Thread Art
Yup. I do. On Apr 20, 11:40 am, brian wrote: > Use an element (with caching), I guess. Do you have a model & > controller for this data? > > On Mon, Apr 20, 2009 at 10:44 AM, Art wrote: > > > Hi all, > > > I'm building a site which is going to use two sidebars, the content of > > which is pulle

Re: MeioUpload Problem

2009-04-20 Thread brian
Are the permissions for the posters dir good? On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth wrote: > > So I have my MeioUpload set up: > >                var $actsAs = array( >                        'MeioUpload' => array( >                                'banner' => array( >                    

Re: Smarty not filtering

2009-04-20 Thread timtrice
Miles, I've avoided using Smarty in Cake for almost a year, now. But I have an application that has become rather tiresome to sort thorugh with all of the programming code (foreach loops, switches, etc.). While I would prefer to not have to use another system inside of a system (because of prob

Re: Views in CakePHP

2009-04-20 Thread Jason Wydro
But you can use the .thtml convention in 1.2 if you wish. I would not though for the sake of convention. On Mon, Apr 20, 2009 at 3:03 PM, brian wrote: > > The .thtml extension is from the Cake1.1.x series. The newer 1.2.x > releases use .ctp. > > On Mon, Apr 20, 2009 at 5:31 PM, brian wrote: >

Re: Smarty not filtering

2009-04-20 Thread timtrice
blckspder, I don't think it's code as my application is running fine. I'm simply using: {$title_for_layout} inside my default template. I was following the tutorial located > (http://bakery.cakephp.org/articles/view/the-cakephp-blog-tutorial- with-smarty). I have the latest version of Smarty w

Re: Views in CakePHP

2009-04-20 Thread brian
The .thtml extension is from the Cake1.1.x series. The newer 1.2.x releases use .ctp. On Mon, Apr 20, 2009 at 5:31 PM, brian wrote: > > Which is the diffrerence between .thtml and .ctp in views? > > Thanks, > > Fernando > > > > --~--~-~--~~~---~--~~ You received

Views in CakePHP

2009-04-20 Thread brian
Which is the diffrerence between .thtml and .ctp in views? Thanks, Fernando --~--~-~--~~~---~--~~ 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 unsubsc

Re: Smarty not filtering

2009-04-20 Thread Miles J
Im still baffled why people would use smarty within a framework. Smart is horrible. --~--~-~--~~~---~--~~ 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 un

HABTM Filter list box

2009-04-20 Thread ross.hagg...@googlemail.com
Hi I'm building a db schema which will have a number of Jobs which belong to a Project. A Job can cover many Rooms in different Buildings. Each Project can have many Buildings. I have the following associations. With scaffolding it looks okay, but when i add a job, how can i filter the room nu

Re: Smarty not filtering

2009-04-20 Thread blckspder
Can you post some code to give an example of what is happening? On Apr 20, 3:07 pm, timtrice wrote: > I've followed any one of the few tutorials in the Bakery on installing > and using Smarty.  However, even though my application's not > generating errors (debug = 3) my variables inside the {} a

MeioUpload Problem

2009-04-20 Thread Arak Tai'Roth
So I have my MeioUpload set up: var $actsAs = array( 'MeioUpload' => array( 'banner' => array( 'dir' => 'img/events/banners', 'create_directory'

Smarty not filtering

2009-04-20 Thread timtrice
I've followed any one of the few tutorials in the Bakery on installing and using Smarty. However, even though my application's not generating errors (debug = 3) my variables inside the {} are not executing. it's all showing up as text. Anyone happen to have a quick solution? I've Googled "smar

Re: Map model attributes to different database fields

2009-04-20 Thread jakobjp
Some of the reasons are: 1) Users can use the old version during a transition period, so they are not forced to switch to the new version for convenience, and 2) (important) a lot of backend-services (mostly some php scripts executed as cron jobs) run with old code (and php objects) and cannot jus

Re: adding css/layouts custom paths to cake

2009-04-20 Thread majna
add to config/bootstrap.php define('CSS_URL', 'my_css_directory/'); for layouts, use theme view, or add additional VIEW paths in bootstrap.php On Apr 20, 11:28 am, Ernesto wrote: > Hello. > > is there any way to add css and/or layouts custom paths to cake? --~--~-~--~~~-

Need immediate help with searching and pagination over model associations. Will pay for your time.

2009-04-20 Thread Chez17
I have tried multiple posts and have searched all over the internet and I can't figure this one out. I imagine an expert could do this in less than an hour. I am happy to pay you for your time, please contact me at the email address above. Here is the issue, I have three models: Model1 HasMany M

Re: Search and Paginate hasMany relationship

2009-04-20 Thread Chez17
yodi, this hasn't been working for me. When I remove all search conditions, I get the containable behavior to work, but once I start putting in search conditions, it stops working. Here is the code I got working, all models have actsAs = 'containable' in them. I have taken your example and simpli

Re: .htaccess on IIS7???

2009-04-20 Thread Curtis
Hi, Putting this post out in the community again in hopes to getting some feedback. Your feedback is greatly appreciated! Thank you, Curtis On Apr 17, 11:55 am, Future22 wrote: > Hello Cake Community, > > I uploaded the latest version of CakePHP to my share hosting server on > GoDaddy.  The

Re: AJAX form submission

2009-04-20 Thread hugocaracol
Thanks for your answer but it is still not working. When I view the generated HTML code, the tag is not there. Therefore I can't submit the form. Your tip to $this->render was very useful though ;) (now it makes sense) Hugo On 19 Abr, 05:21, adallas wrote: > I used the same example you did an

Re: Map model attributes to different database fields

2009-04-20 Thread brian
I suppose the burning question is, why do you want both versions of the app using the same DB? That seems fraught with peril. On Mon, Apr 20, 2009 at 11:03 AM, jakobjp wrote: > > I am trying to map model attributes to database fields with different > names. > > Example of regular CakePHP model:

Re: saving entries that are not related directly.

2009-04-20 Thread brian
Maybe the easiest solution would be to create a Behavior that your Comment, Item, etc. models implement. An afterSave() method would then update the acitivities table. On Mon, Apr 20, 2009 at 8:46 AM, gaurav.v.sharma wrote: > > hi all, > > If we want to save all the related model data then we us

Re: DB driven sidebars

2009-04-20 Thread brian
Use an element (with caching), I guess. Do you have a model & controller for this data? On Mon, Apr 20, 2009 at 10:44 AM, Art wrote: > > Hi all, > > I'm building a site which is going to use two sidebars, the content of > which is pulled from the database. These will appear on every page of > th

Re: adding css from helper

2009-04-20 Thread brian
Also, make sure that Html and Javascript are included in your helper's $helpers array. On Mon, Apr 20, 2009 at 10:07 AM, fain182 wrote: > > "When using $html->css() or $javascript->link() in view files, specify > 'false' for the 'in-line' argument to place the html source in > $scripts_for_layou

Re: requestaction with pagination?

2009-04-20 Thread brian
Indeed, there is. At least, if you're trying to do what I did. Your question isn't very clear. I needed to paginate posts on the front page of a site. This page is served up by a customised PagesController (PublicStaticController--a bit of a joke that I won't get into). Anyway, I'll just show you

Re: Move Baked app to Production server

2009-04-20 Thread brian
You're going to require the Cake libs on the server, also. Baking an app does not "compile" the libs into your classes. On Mon, Apr 20, 2009 at 8:43 AM, aryan wrote: > > I have made an application using bake tool. Cakephp is installed on my > pc. > > How should I move it to the production server

Re: Pagination with non-fixed page size (how can I customize paginateCount?)

2009-04-20 Thread brian
I apologise--I've just realised that I left out one crucial detail! I meant to say that you might be better off adding a column to the table, hijri_month, with, eg. 1,2,3, etc. It isn't absolutely necessary but will make your queries simpler as well as allow you to use an index on the column so th

requestaction with pagination?

2009-04-20 Thread Mech7
Is there anyway to get the pagination to work without redirecting to a different controller ? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegro

Re: get action in beforeValidate?

2009-04-20 Thread brian
Yes, this is the way i decided to do it. On Sun, Apr 19, 2009 at 4:31 PM, burzum wrote: > > If you need any special validation for a method put it in a model > method and just pass $this->data + whatever you need to this method. > The model method can then set or unset() whatever conditions you

Re: Map model attributes to different database fields

2009-04-20 Thread jakobjp
Another way of describing the problem is that instead of having the following query style: SELECT uid, firstname FROM users; I want this query style: SELECT uid AS id, firstname AS first_name FROM users; So that I can use the attributes "id" and "first_name" in the code, but it will work with th

Re: saveAll saving foreign_key_id as 1 event giving correct debug information

2009-04-20 Thread Nature Lover
Hi! The relations are direct as below: Product->ProductVariation Product->ProductImage Thanks! On Apr 20, 5:00 pm, "gaurav.v.sharma" wrote: > there should be a direct relation between the two tables ( hasone, > hasmany)... only then saveAll wil work.. --~--~-~--~~~---

Map model attributes to different database fields

2009-04-20 Thread jakobjp
I am trying to map model attributes to database fields with different names. Example of regular CakePHP model: User Model with attributes "id" and "firstname" would load the appropriate values from same-named database fields "id" and "firstname". Example of my CakePHP mode: User Model with aatri

Re: how can i generate a static html page with cakephp

2009-04-20 Thread Faza
First, create a model with the $useTable = false declaration: app/models/mypage.php Then, define an empty action in a controller, like app/controller/mypage_controller.php and place all the static stuff in a view app/views/mypage/index.ctp Welcome to my static page in CakePHP! Et voila!

Re: adding css from helper

2009-04-20 Thread fain182
"When using $html->css() or $javascript->link() in view files, specify 'false' for the 'in-line' argument to place the html source in $scripts_for_layout. (See API for more details on usage)." http://book.cakephp.org/view/96/Layouts --~--~-~--~~~---~--~~ You recei

DB driven sidebars

2009-04-20 Thread Art
Hi all, I'm building a site which is going to use two sidebars, the content of which is pulled from the database. These will appear on every page of the site. Since the sidebar data isn't really related to the main content of the page, I'm not sure what the best way is to pull it in. I'm sure I c

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread Jon Bennett
Hi Able, > The main problem is that, when I set the app folder's path with > > cake bake project > > it changes automatically few seconds after and it returns to be I'm not sure, I don't use bake or the console often, and have only had real success in a production environment, not locally. try

Re: cant use saveAll() to edit $this->data

2009-04-20 Thread fain182
> I need help in using saveAll() method for editing, I have a form that > needs to save data to 2 different models, Subscriber and Individual > subscriber. But everytime i edit data, a new data is being created > instead. The following is my codes: did you put a hidden field with the id in the vie

Re: Using error message like ALT of an image

2009-04-20 Thread byqsri
Sorry I have found the answer isFieldError(string $fieldName) On Apr 20, 3:35 pm, byqsri wrote: > And if I would that the image is showed only if there is the error? > > On Apr 20, 2:55 pm, "Dr. Loboto" wrote: > > > Try this: > > > echo $html->image( > >     'my_image.gif', > >     array( > >

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread albe
The main problem is that, when I set the app folder's path with cake bake project it changes automatically few seconds after and it returns to be ...\cake\console (the default value). How is it possible?! On Apr 20, 1:58 pm, Jon Bennett wrote: > > Ok, I'm going to try to keep on with the tut

Need Help for laying out Database application

2009-04-20 Thread Raja
Hello, We are basically desktop C/S database application developers and are planning to port one of our application (Delphi Firebird) to web. The basic requirements are as follows 1> It should be Backend Database independent (i.e. should use one of Firebird, MySQL, PostgrSQL, Oracle and MS-

observeField and updating selectTag

2009-04-20 Thread tienzyee
I have 2 selecttag, the first with the id, ProjectId and the second with the id, SubjectId When the user make changes in ProjectId, the observeField will be triggered and a controller function called ajax_calls will be triggered. However, I failed to make the SubjectId updated with the result fro

Observe Field, Populating a selecttag

2009-04-20 Thread tienzyee
I have 2 selecttag, one which allows me to select the projects and then it will update the related subjects in the second selecttag. I've been using this tutorial, http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/ but I'm having problem populating the second selecttag

php problem help!

2009-04-20 Thread elyfrank
Hi guys, I am trying to use the rss2html.php on my website and for some reason it display the feeds with no problem when I display rss2html.php. The problem is that I am trying to call it from my webpage and it doesn't work. This is the webpage I am trying to show the the rss feeds http://flyaway

Re: SaveAll to save Parsed Array not working.

2009-04-20 Thread schneimi
Hi, when I use saveAll, my data looks like this: Array ( [1] => Array ( [Team] => Array ( [name] => Arsenal [id] => 7 ) ) [2] => Array ( [Team] => Array (

Re: Using error message like ALT of an image

2009-04-20 Thread byqsri
And if I would that the image is showed only if there is the error? On Apr 20, 2:55 pm, "Dr. Loboto" wrote: > Try this: > > echo $html->image( >     'my_image.gif', >     array( >         'alt' => $form->error( >             'Model.field', >             null, >             array('wrap' => false,

Re: RFC: config/paths.php - Ability to set your own "paths"

2009-04-20 Thread Martin Westin
Thought I'd post my current quick-hack of paths. It is simple but it does what I need. And git makes the process of hacking the core a lot easier. Fast forward rocks. git diffing looks like this: Just three lines added: diff --git a/cake/config/paths.php b/cake/config/paths.php index 6a6449f..07

Re: error loading css js etc. wrong path

2009-04-20 Thread Jorge Gomez
It was the missed .htaccess issue, thanks for this very quick response. 2009/4/20 Martin Westin > > Check that the .htaccess files are not missing as they are the ones > doing the rewriting. > On Mac OS X this is a very very common problem since the finder does > not select them when you select

Re: Using error message like ALT of an image

2009-04-20 Thread Dr. Loboto
Try this: echo $html->image( 'my_image.gif', array( 'alt' => $form->error( 'Model.field', null, array('wrap' => false, 'escape' => false) ) ) ); On Apr 20, 5:40 pm, "marco.rizze...@gmail.com" wrote: > I would use the error message

saving entries that are not related directly.

2009-04-20 Thread gaurav.v.sharma
hi all, If we want to save all the related model data then we use the saveAll () method. But what should be done if I want to make an entry in that table which is not directly related to the related table. I have created a table named tbl_acitivites in which I am recording the actions of users l

Move Baked app to Production server

2009-04-20 Thread aryan
I have made an application using bake tool. Cakephp is installed on my pc. How should I move it to the production server which doesn't have cakephp installed? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Martin Westin
I only have a few general things to share. You have probably at least some of this in mind already but sometimes repetition is good :) First. It doesn't sound at all like you HAVE TO use plugins for what you describe. Plugins in cake can basically be two things. An optional functionality (a fract

Re: saveAll saving foreign_key_id as 1 event giving correct debug information

2009-04-20 Thread gaurav.v.sharma
there should be a direct relation between the two tables ( hasone, hasmany)... only then saveAll wil work.. On Apr 20, 3:50 pm, Nature Lover wrote: > Please help someone! > The project due date is the day after tomorrow. > > Please! --~--~-~--~~~---~--~~ You recei

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread Jon Bennett
> Ok, I'm going to try to keep on with the tutorial. > Once I've created baked Models and Controllers, I've got to create the > views but which actions should I declare? > The tutorial simply doesn't tell that... > http://book.cakephp.org/view/642/Preparing-our-Application Why not work with an ex

Re: Layout inheritance, setting a layout for a layout

2009-04-20 Thread Martin Westin
To give an example of majna's comment. If you have your base layout called default and another one called contained... in contained.ctp: echo $this->renderLayout(''.$content_for_layout.'','default'); This would probably be the smallest layout in history but I hope you get the point. Usually I w

Re: error loading css js etc. wrong path

2009-04-20 Thread Martin Westin
Check that the .htaccess files are not missing as they are the ones doing the rewriting. On Mac OS X this is a very very common problem since the finder does not select them when you select all files in a folder. Copy the containing folder or use some other means of copying these files. /Martin

Re: saveAll saving foreign_key_id as 1 event giving correct debug information

2009-04-20 Thread Nature Lover
Please help someone! The project due date is the day after tomorrow. Please! --~--~-~--~~~---~--~~ 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 unsubscr

how can i generate a static html page with cakephp

2009-04-20 Thread exceljava
hi, i am a newer with cakephp,i want to generate a static html page when from controller to views, how can i do? thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Using error message like ALT of an image

2009-04-20 Thread marco.rizze...@gmail.com
I would use the error message form a data validation like ALT of an image but I can't to understand ho can I do it? Has somebody a idea to o it? Many Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: Need help with table associations

2009-04-20 Thread John Andersen
Answered in http://groups.google.com/group/cake-php/browse_thread/thread/c27461d26e365e46# On Apr 19, 11:27 pm, Victorr wrote: > I need help how i should link these tables together. > > I have > Users > Profile > Posts > > Users is suposed to have one profile and many Posts. The Users are > als

Re: Help with associations

2009-04-20 Thread John Andersen
You need an additional information - who is friend with whom - so a new table "users_users" is born :) So your relationships will be: "users" hasMany "posts" "users" hasAndBelongsToMany "users" through "users_users". And you have to find: 1) The current users post using "users" hasMany "posts" a

Re: Layout inheritance, setting a layout for a layout

2009-04-20 Thread majna
check out View::renderLayout() On Apr 17, 4:43 pm, maxmil wrote: > I would like to be able to define a kind of inheritance model for my > layouts. Thats to say be able to define a layout for a layout. > > Probably not very well explained, heres a concrete example. > > I have a generic layout fo

saveAll saving foreign_key_id as 1 event giving correct debug information

2009-04-20 Thread Nature Lover
Hi! I am working on add/edit module for products on an e-commerce project. Here requires to save multiple images at same time. While submitting form the debug output for received ProductImage elements of $this- >data is as below: app\controllers\products_controller.php (line 716) Array ( [1]

Re: email component and smtp error +OK <27407.1240210...@sword3>

2009-04-20 Thread AgBorkowski
its my fail i had bad hostname should be: smtp.hti.pl but last error didn't tell me nothing about that On 20 Kwi, 08:52, "andrzejborkow...@gmail.com" wrote: > i try sent email by > $this->Email->to = $email; > > $config['Email']['from'] = 'andrzej.borkow...@lowcy.com.pl'; > $config['Email']['fro

adding css/layouts custom paths to cake

2009-04-20 Thread Ernesto
Hello. is there any way to add css and/or layouts custom paths to cake? --~--~-~--~~~---~--~~ 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 unsubscribe f

adding css from helper

2009-04-20 Thread Ernesto
Hello. is there any way to add css links from an helper function? --~--~-~--~~~---~--~~ 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 unsubscribe from th

error loading css js etc. wrong path

2009-04-20 Thread screamdamage
Hello I'm just installed cakephp (v.1.2.2.8120) over apache in mamp server, in basic (developer) mode, but when I load the page, it doesn't show css,js, images, rewrite engine is on. In the html code it shows as example: href="/favicon.ico" but the right location is: href="/app/webroot/favicon

RFC: config/paths.php - Ability to set your own "paths"

2009-04-20 Thread Martin Westin
I'd like some reactions to this kind of addition to Cake in a future version. cake/config/paths.php is the file that defines the locations of files and directories. Most defines look like this: define('CSS', WWW_ROOT.'css'.DS); Some of them anticipate that they might have been set before, like:

Help with associations

2009-04-20 Thread Victorr
I need some help with linking my database tables and models. I have: User Profile Post A User has many posts, one profile and many friends(other users). I want to display the users posts and the users friends posts on the profile. How should i build the database(like friendship between users) a

Need help with table associations

2009-04-20 Thread Victorr
I need help how i should link these tables together. I have Users Profile Posts Users is suposed to have one profile and many Posts. The Users are also suposed to have many friends(other users). I want to display the users posts and the users friends posts on the profile. How should I link the

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Evert
Well, the system that I thought required requestAction() was like this: I wanted to build a cms that's so complete you would only need to create a new database and a new css-file to create a whole new website. Plugins are used as codeblocks. So if I have a page with some content (an article or wha

Re: Simple acl tutorial (Class DATABASE_CONFIG) not found

2009-04-20 Thread albe
Ok, I'm going to try to keep on with the tutorial. Once I've created baked Models and Controllers, I've got to create the views but which actions should I declare? The tutorial simply doesn't tell that... http://book.cakephp.org/view/642/Preparing-our-Application On Apr 19, 8:47 pm, Jon Bennett

Re: I Keep getting logged out

2009-04-20 Thread Dr. Loboto
If Session.save = 'php' it may be caused by other sites on same server that use short sessions. In this case Session.save = 'cake' will help. On Apr 20, 2:26 pm, Kyle Decot wrote: > I've started to get logged out of my website every couple of minutes > and I'm not really sure why. I set the Secu

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Richard
It really depends on why you are creating your CMS, as that would have a strong influence on your architecture. If you can provide more specific questions, maybe we/i can help :) To address your technical question, about plugins with requestAction - again, that depends on your architecture. I've n

Re: What's the Cake-way to build a cms?

2009-04-20 Thread Evert
Ok, some people told me I didn't need to use requestAction as much as I thought. I'll try to build a cms with plugins by only using it's models and elements.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

What's the Cake-way to build a cms?

2009-04-20 Thread Evert
I've tried to think of several ways to build a cms in cake. But every system I could think of depended a lot on plugins. One system might use several plugins with one page load and that would be quite slow cause you needed to use requestAction() a lot. (In that system plugins weren't like mini-app

Re: Question about building a forum

2009-04-20 Thread Mauricio Morales
Sure you can, If you want to do that you need to read all the params (func_get_args) and make your custom logic. I took this code from the bakery in order to do this example. Hope this helps: function display() { if (!func_num_args()) { $this->r

I Keep getting logged out

2009-04-20 Thread Kyle Decot
I've started to get logged out of my website every couple of minutes and I'm not really sure why. I set the Security level to low but that didn't help any. It doesn't really happen on any particular part of my site, just kind of random. Any ideas on how I can determine what's causing this? Thank y