Re: Cake 1.2 Router::url method and 'id' parameter -- bug or feature?

2007-11-18 Thread Gwoo
feature --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

Latest additions to 1.2

2007-11-17 Thread Gwoo
Several people voiced opinions about plugins and in an effort to make them more flexible we added the functionality to access models across plugins and the main application in the current 1.2 branch. Use the dot notation Plugin.Model to access models in the plugin and Model to access the models

Re: Nightly builds?

2007-11-15 Thread Gwoo
We moved to a new server and there is an issue with the build script. We have to run it by hand right now, which we try to do on a regular basis. We are hoping to have the problem resolved shortly, but to be honest its not high on the priority list right now. Newbies should probably start with

Re: $form-checkbox having troubles.

2007-11-15 Thread Gwoo
@mascheon Looking at the tests it appears this is covered. Check your revision and whether the bug was fixed. Also, checkbox does not provide a label or a wrapper div so passing that stuff as false will cause the extra attributes. @Mr-Yellow Coming soon to a beta near you and as of 5994 in the

Re: Using models with plugins in CakePHP 1.2

2007-11-15 Thread Gwoo
Quoting the intro of the plugins section of the manual, CakePHP allows you to set up a combination of controllers, models, and views and release them as a packaged application plugin that others can use in their CakePHP applications...Package it as a CakePHP plugin so you can pop it into other

Re: Using models with plugins in CakePHP 1.2

2007-11-15 Thread Gwoo
This is all about you isnt it? --~--~-~--~~~---~--~~ 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: Cake Schema issue ?

2007-11-15 Thread Gwoo
why are passing a path? --~--~-~--~~~---~--~~ 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]

Re: Schema generation

2007-11-13 Thread Gwoo
Enums will not be supported, and are not really supported in 1.2 anyway. We are also not going near YAML. Luckily, if you like that there are some other libraries available. You can generate snapshots of your database, which are like versions. But, if you are using svn you don't really need

Re: what is wrong , how can I fix it ,thank you very much

2007-11-13 Thread Gwoo
your pagination component probably has some whitespace after the closing tag ?. --~--~-~--~~~---~--~~ 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: blog tutorial not working with simple user authentification tutorial?

2007-11-13 Thread Gwoo
Try setting your Security.level to medium in core.php --~--~-~--~~~---~--~~ 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,

Re: Schema generation

2007-11-12 Thread Gwoo
run 'cake schema help' from the command line. --~--~-~--~~~---~--~~ 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

Re: fix: upgrading to pre-beta causes login to fail

2007-11-09 Thread Gwoo
high renews the session every request, giving the stored values a new session id. This makes it extremely hard to highjack session data. The consequence is that if something is changed your sessions may stop working. Setting to medium stops the renew functionality. This leaves you slightly more

Re: YAMMY!: feed your migrations faster

2007-11-07 Thread Gwoo
The SchemaShell handles full schema versioning. run: cake schema help --~--~-~--~~~---~--~~ 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

Re: CSS Path Problem

2007-11-04 Thread Gwoo
Oh, maybe the htaccess files were removed or if you moved files around the htaccess files were missed because they are hidden. Anyway, glad to hear its working with a freshly baked project. --~--~-~--~~~---~--~~ You received this message because you are

Re: Missing controller - naming error

2007-11-03 Thread Gwoo
are you accessing it with http://localhost/quick_notes? --~--~-~--~~~---~--~~ 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,

Re: CakePHP-powered Forum best structure?

2007-11-03 Thread Gwoo
Create a forum plugin. --~--~-~--~~~---~--~~ 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]

Re: cache vs Cache?

2007-11-03 Thread Gwoo
Yes. cache() is being replaced by Cache::write(), Cache::read(), Cache::delete(), Cache::clear(); You can set new configurations like Cache::config('myConfig', array('engine'= 'Memcache')); and then reference them on a per method, like Cache::write($key, $data, 'myConfig'); or for all methods

Re: Missing controller - naming error

2007-11-03 Thread Gwoo
You seem to be over thinking things. Controller and Model names are CamelCased, So QuickNotesController, var $name = 'QuickNotes', accessible via http://localhost/cake/quick_notes. This would expect by default a model of QuickNote in models/quick_note.php, with var $name = 'QuickNote' and

Re: CSS Path Problem

2007-11-03 Thread Gwoo
This is related to AllowOveride None, when it should be All or mod_rewrite not being enabled. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Session problem in app_controller

2007-10-24 Thread Gwoo
You should look at the example in the Manual. It does not use __construct(), it uses beforeFilter. The reason for this is the components are not loaded in the constructor of the Controller. http://manual.cakephp.org/appendix/simple_user_auth --~--~-~--~~~---~--~~

Re: $File-write problems in new release?

2007-10-23 Thread Gwoo
yeah, some changes were made for the line endings on the different OS. Could you write a test case. The File tests are pretty easy to follow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: CakePHP 1.2: paginate igoner recursive = 0?

2007-10-23 Thread Gwoo
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 Groups Cake PHP group. To post to this group, send email to

Re: New Release Assuming Installed in Webroot?

2007-10-23 Thread Gwoo
rather than hack your define, you could also add Configure::write('App.base', 'reviews); to your core.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Someone did some moderating?

2007-10-22 Thread Gwoo
it wasnt me...I suspect a google group error. --~--~-~--~~~---~--~~ 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

Re: Latest Releases not available for download

2007-10-22 Thread Gwoo
Sorry for the confusion. An announcement will be made when the release is available. --~--~-~--~~~---~--~~ 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: Security in model, will it break MVC?

2007-10-21 Thread Gwoo
this is integrated into the AuthComponent already. function beforeFilter() { $this-Auth-authorize = array('model' = 'User'); } then put this in the User model for instance. function isAuthorized($user, $controller, $action) { //do some checks return false; } if you want to do it

Re: Issue on IIS

2007-10-16 Thread Gwoo
what version of cake are you using? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Update gone wrong.

2007-10-16 Thread Gwoo
did you try looking at the /app/config/core.php in the latest nightly? --~--~-~--~~~---~--~~ 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

Re: Update gone wrong.

2007-10-16 Thread Gwoo
could be a problem with the nightly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: scaffold Component : Scaffold::__scaffold

2007-10-15 Thread Gwoo
once you add var $scaffold you should not do anything else. --~--~-~--~~~---~--~~ 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

Re: diagrams for cakephp: a case for UML?

2007-10-15 Thread Gwoo
UML --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

Re: Error when baking a new project with CakePHP 1.2

2007-10-15 Thread Gwoo
what does phpinfo() show? --~--~-~--~~~---~--~~ 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: migrating from 1.1.6 to CR1 (1.1.17)

2007-10-13 Thread Gwoo
review the release annoucnments. and then just copy your app alongside the new cake directory. There are no documents on it cause it is really that simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: 1.2.5750?

2007-10-12 Thread Gwoo
Yeah, hopefully. But in reality, there are already a lot of people using the 1.2 branch which currently stands at 5750. There have been enough changes to new features since the last release revision to warrant an update. Also, it was a good excuse to use the new layout

Re: Objects instead of arrays

2007-10-03 Thread gwoo
have you searched this group? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Objects instead of arrays

2007-10-03 Thread gwoo
ok, i had to dig a bit deeper http://groups.google.com/group/cake-php/browse_thread/thread/fc7ef676f60ab03/81270d96a20cb44e?lnk=gstq=gwoo+objectsrnum=4#81270d96a20cb44e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Objects instead of arrays

2007-10-03 Thread gwoo
function beforeRender() { $this-data = Set::reverse($this-data); } --~--~-~--~~~---~--~~ 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

Re: change model $useTable on the fly

2007-10-03 Thread gwoo
do a search in this group for setSource --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Why are all properties public?

2007-10-01 Thread gwoo
a href=http://www.google.com/search?q=getters%20and%20setters%20are %20evilsourceid=mozilla2ie=utf-8oe=utf-8getters and setters are evil./a Cake Conventions are below and allow us to make the change to access modifiers when the time is right. var $__private var $_protected var $public

Re: Common Startup controller

2007-10-01 Thread gwoo
copy app_controller.php to /app/app_controller.php --~--~-~--~~~---~--~~ 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

Re: Common Startup controller

2007-10-01 Thread gwoo
copy app_controller.php to /app/app_controller.php --~--~-~--~~~---~--~~ 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

Re: Using dashes instead of underscores in URLs

2007-10-01 Thread gwoo
@Wayne good try, but that is perhaps one of the worst ideas I have seen in a while @Joel using the router is the proper way to achieve your goes. But obviously you could end up with a lot of routes and who really wants to write a new route every time you add an action. That said, there is an

Re: CakeSWXPHP needed only to expose all controllers and methods?

2007-10-01 Thread gwoo
use beforeFitler --~--~-~--~~~---~--~~ 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: The forbidden hack? | An attempt to redesign Cake View handling

2007-09-11 Thread Gwoo
make your own view class. then set $this-view = 'MyCustomClass'; in your controller --~--~-~--~~~---~--~~ 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: The forbidden hack? | An attempt to redesign Cake View handling

2007-09-11 Thread Gwoo
/app/views/my_custom_view.php $this-view = 'MyCustomView'; MyCustomView extends View --~--~-~--~~~---~--~~ 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: Doxyfile

2007-09-11 Thread Gwoo
There is nothing special about the Doxyfile used to generate the API. --~--~-~--~~~---~--~~ 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

Re: Doxyfile

2007-09-11 Thread Gwoo
feel free to disagree, but here is what I know... 1) phpnut has never built the API with doxygen 2) I sent him the Doxyfile 3) I build the API given those three things, it leads me to believe that my initial statement was indeed true. --~--~-~--~~~---~--~~ You

Re: Database Migrations ala RoR

2007-09-10 Thread Gwoo
Joel Moss also wrote a migrations that integrates with 1.2. http://joelmoss.info/switchboard/blog/2583:Migrations_v33 One of the best things about Cake is how easy it is to drop these third party packages into vendors. The Cake 1.2 core has a alpha version of the CakeSchema that John refers to.

Re: Grab parent ARO from ACL

2007-09-10 Thread Gwoo
$this-Acl-Aro-findByParentId() --~--~-~--~~~---~--~~ 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: I Just Want To Say ThanX

2007-08-29 Thread Gwoo
Baz, You are more than welcome and we really appreciate your kind remarks. I added your RSS feed. Keep up the blogging. And, thank you for being a valuable part of the community. Bake on. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: 1.2 resources

2007-08-29 Thread Gwoo
Im happy to see you found my OCPHP presentation. I tried to sum up most of the features for 1.2, but the presentation was already 2 hours long, so I left some things out. Great article. Thanks for putting it together. It may find its way to the cakephp.org homepage soon.

Re: Solved with Hack: IIS issues + cake 1.2 and no mod_rewrite stuff

2007-08-20 Thread Gwoo
this is not the way to set the base in 1.2. If you are using the current nightly, you can set Configure::write('App.base', '/path/to/index'): in your core.php Cake will use this path without doing anything tricky. If you want to make your app more portable, then use

Re: BuiltWith.com Detects CakePHP - But How?

2007-08-15 Thread Gwoo
Session Key? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: debug 0 in CakePHP 1.2 - blank page

2007-08-15 Thread Gwoo
The difference is this: Debugger the debugger class is used on the default homepage. I have made changes to the latest 1.2 so the white page does not happen. But with Debug 0 and the default homepage in previous 1.2 revisions, you will see a white page, since the Debugger will not be loaded.

Re: Auth1.2 component not showing methods.

2007-08-13 Thread Gwoo
You you want to check on based on the action then you should use the controller based auth. Model based auth gets the action based on how the action is mapped to the CRUD. So, in the model that is all you deal with, create, read, update, delete.

Re: What's the view cache story in cake 1.2?

2007-08-13 Thread Gwoo
var $helpers = array('Cache'); --~--~-~--~~~---~--~~ 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: html-link and router-url adding /bare/ to the url if action is index

2007-08-13 Thread Gwoo
svn update --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Gwoo
the Auth component is not moving anymore --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Baking in cakePHP 1.2

2007-08-07 Thread Gwoo
http://cakephp.org/screencasts there is one for Setting up the console. Once it is setup properly just run cake bake help for more information. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: Building Facebook app on CakePHP

2007-08-03 Thread Gwoo
what more do you need? --~--~-~--~~~---~--~~ 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]

Re: Cake PHP running dead slow !-- 60.6669s --

2007-07-30 Thread gwoo
There are two reasons to avoid $uses and loadModel in your code. 1. performance: Extra memory will be consummed if you have var $uses and the association in your model. loadModel simply checks if the class exists and includes it if it does not, so the overhead here is minimal. But then you need

Re: AssetPackager for CakePHP

2007-07-30 Thread gwoo
I would suggest using the console as I have it setup in the screencasts. This allows you to do everything from the current working directory, which in most cases is the app. From there you can figure out relative paths. --~--~-~--~~~---~--~~ You received this

Re: Model::saveField not updating

2007-07-30 Thread gwoo
it would be $this-ResumeCredit-id and if there is no record found then saveField will do an insert. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-26 Thread gwoo
Add Zend to your vendors directory. Write your own SessionComponent. use vendor('Zend/Session', 'Zend/Auth'); or whatever the path to the libs are. Create the methods you need like read, write, destroy. --~--~-~--~~~---~--~~ You received this message because you

Re: rdBloggery and sorting problem

2007-07-26 Thread gwoo
the code in rdBloggery is pretty ancient. Been a little busy to update it. The pagination in rdBloggery is different from 1.2 though they may look similar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: change view of scaffolding

2007-07-25 Thread gwoo
You could also have a look here: http://manual.cakephp.org/chapter/scaffolding --~--~-~--~~~---~--~~ 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: Model::beforeValidate -- bug or feature? :)

2007-07-25 Thread gwoo
you should use Model::invalidate() in beforeValidate. Otherwise use beforeSave and return false if you need to stop execution. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: Site Administration

2007-07-06 Thread Gwoo
http://cakephp.org/screencasts I did two screencasts on setting up the console in 1.2. One is for *nix and the other windows. Check them out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: ObserveField()? What can it observe?

2007-07-06 Thread Gwoo
On Jul 6, 2:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, Regarding ObserveField()? What can it observe? For example, can observeField() observe DIVs without forms in them? no. you need a form field. Perhaps I'm missing something. And I know we've discussed this ad

Re: optgroup: Can someone give me an example

2007-07-02 Thread Gwoo
This is from the Bakery code. $this-set('parents', $this-Category-generateList(null, null , null, null, null,'{n}.ParentCat.name')); The last param is the what you want to group on and will have that label. --~--~-~--~~~---~--~~ You received this message

Re: php json_decode not working when microtime comment is appended to json output

2007-07-01 Thread gwoo
please search for things like this. Configure::write('debug', 0); --~--~-~--~~~---~--~~ 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

Re: how to cache all the view in call ?

2007-07-01 Thread gwoo
http://manual.cakephp.org/chapters/caching --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: checkbox 1.2?

2007-07-01 Thread gwoo
did you look? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: difference between $this-data and $this-set('data')

2007-06-30 Thread gwoo
$this-data is also available in your view in Cake 1.2. It is a copy of $this-data that is in the controller. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Cake 1.2alpha path question

2007-06-29 Thread gwoo
There is nothing different in Cake 1.1 and Cake 1.2 with regards to dispatch. Did you uncomment line 42 in core.php? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: SQL Server and Bake

2007-06-29 Thread gwoo
your php cli needs to support mssql. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Graham Bird's AJAX tutorial in 1.2.x.x

2007-06-27 Thread gwoo
The TohDoh done by Crazylegs is really well done. I would not waste my time on a two year old tutorial that was not that well written to begin with. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

Re: bootstrap.php woes

2007-06-27 Thread gwoo
if you moved /cake anywhere other than where it was in the downloaded package you need to change the CAKE_CORE_INCLUDE_PATH in the /app/ webroot/index.php --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: PHP functions file_exists, is_executable and shell_exec fails in CakePHP

2007-06-27 Thread gwoo
Nothing Cake does would affect the file system access. The mostly likely cause of the error is permissions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Bad choice of Variable Name $db

2007-06-27 Thread gwoo
FLAME ON um how about register_globals off do you know how php works? $db is a temp variable in the model and various other classes. It is not a global var. Geesh, how about you sit back for a second and think about your problem before getting all up in a huff about it. FLAME OFF

Re: Decode GWT post into $_POST

2007-06-27 Thread gwoo
you dont need to sanitize. I can see the beforeFilter being about 4 lines of code max. Seems pretty painless to me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Re: Decode GWT post into $_POST

2007-06-27 Thread gwoo
Data is escaped properly when it is inserted into the db which prevents sql injection. You then escape output so to remove unexpected/ malicious output. 1. function beforeFilter() { 2. if(isset($this-params['form']['json'])) { 3. $this-data = json_decode($this-params['form']

Re: cake.generic.css path hack

2007-06-26 Thread gwoo
If you do not have mod_rewrite AND you have do NOT have your DocumentRoot set to the webroot, you are opening the door to your code. This is a security risk and should NEVER be used in a production environment. --~--~-~--~~~---~--~~ You received this message

Re: ?= and PHP5

2007-06-26 Thread gwoo
in php5 short tags are disabled by default. You need to change the php.ini. --~--~-~--~~~---~--~~ 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: cake 1.2, caching elements, a suggestion

2007-06-26 Thread gwoo
there is an enhancement ticket for this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Home page to posts

2007-06-26 Thread gwoo
do you have any code to show? --~--~-~--~~~---~--~~ 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: html-submit() does not exists?

2007-06-15 Thread gwoo
@Mech7 You are using the helper incorrectly. if you use $form-input() then you add the option for the error message. if you are using the individual form helper methods like textarea echo $form-textarea('field'); echo $form-error('field', 'Error in field');

Re: where did /cake/scripts/bake.php go?

2007-06-13 Thread gwoo
For setting up the new console check out the screencasts. http://cakephp.org/screencasts --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: bakery GUI suggestion

2007-06-03 Thread gwoo
Suggestions are more than welcome. If you have an idea for better gui, put together a mock up and submit it as an enhancement to trac. https://trac.cakephp.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: selectTag

2007-06-01 Thread gwoo
set $this-data['Product']['status_id'] in your controller --~--~-~--~~~---~--~~ 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

Re: gmailer and CakePHP

2007-05-30 Thread gwoo
you probably have some extraneous whitspace in code. --~--~-~--~~~---~--~~ 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,

Re: Using a Component in controller-beforeFilter in 1.2

2007-05-30 Thread gwoo
Probably need to change startup to initialize --~--~-~--~~~---~--~~ 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

Re: Config CORE_PATH error?

2007-05-30 Thread gwoo
looks like your vendor library is using a function that does not exist on your other servers php install --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Using a Component in controller-beforeFilter in 1.2

2007-05-30 Thread gwoo
Components help out controllers with common business logic, so first intialize, then modify in beforeFilter, then startup some automagic. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

Setting Up the Console screencasts

2007-05-27 Thread gwoo
Some of you may have already seen the Grumpy Canuck's screencast on running the interactive console. I just posted two more on setting up your environment to run the Cake Console Shells. There is one for windoze and one for *nix. They are not streaming but luckily the files are small.

Re: dynamically setting the $useTable

2007-05-23 Thread gwoo
setSource --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

Re: Changing datasources to support web services.

2007-05-23 Thread gwoo
you would put a class that extends DataSource in /app/models/ datasources then create a connection in database.php that can be used. you could use the xml class to get the web service. here is a datasource I started on for imap. never completed beyond making the initial connection, but it

Re: Joins across databases with useTable ??

2007-05-18 Thread gwoo
All associations except HABTM can work across database. You need useDbConfig. There are a few threads on this group that explain it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Bake error: New model Object

2007-05-15 Thread gwoo
does the Product model exist? --~--~-~--~~~---~--~~ 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: cakephp rendering

2007-05-09 Thread gwoo
use the RequestHandler component with ajax and the layout will be set automatically --~--~-~--~~~---~--~~ 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

<    1   2   3   4   5   6   >