Re: transaction

2008-07-14 Thread .
i am using mysql On Sun, Jul 13, 2008 at 9:06 AM, Marcin Domanski [EMAIL PROTECTED] wrote: Maybe your database doesnt support transactions ? -- Marcin Domanski http://kabturek.info On Sun, Jul 13, 2008 at 10:39 AM, . [EMAIL PROTECTED] wrote: I have the following transaction, but even

method to re-fetch page from server

2008-07-14 Thread .
anyone have any idea how facebook handles their back button/ forward button/ refresh? the pages are always re-fetched from the server. I have tried the following but doesn't work. how would you clear the post data ? is there a way to do this in cake or in php in general? meta

Re: how to access other models from non parent controller

2008-07-14 Thread ビシャルfrom Nepal
Thank You very much for your help. It really worked for me. Anyways I was thinking why was cakephp using this $uses when other similar frameworks like Rails doesnt impose such syntax. On Jul 13, 3:18 am, duRqoo [EMAIL PROTECTED] wrote: Hey, you need to tell C1 to use M2 model using the $uses

this-redirect() deletes any variable set by using this-set() method.

2008-07-14 Thread Inam
Hi everybody .. I am using cakephp 1.1.19 currently . The problem i m having if i set some variable using this-set() and then redirect to some page, the variable is not available there. So what i want is to send some data back to the redirected page. IN java this was achieved by RequestDispacher

Problem with cake 1.2

2008-07-14 Thread Tiago Curcio
I've intall cake1.2 but a error message appear: Notice (8): unserialize() [function.unserialize]: Argument is not a string [CORE/cake/libs/cache/file.php, line 184] Does some one know why? visit my url to see the problem: http://www.tiagocurcio.com/cake/ thank's

Re: how to access other models from non parent controller

2008-07-14 Thread duRqoo
Well usually in controller you work only with default model for the controller binded by conventions and its related models, but in some situation you would like to create a dummy controller which is not using any model, or attach a non-related models for using in the controller. There is where

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread RichardAtHome
How can this be the preferred behaviour? What do you do if you get a 'bad' user? Even if you delete his user record you are helpless to stop him until he voluntarily logs out! Or, what if you have a regular user who needs his 'role' changing? Granted, profile edits and changes in roles are

ACL with multi-group membership?

2008-07-14 Thread CrazyDave
Hi, I want to use the ACL component in CakePHP and have got things up and running thanks to some blog posts by Mark Story and LemonCake. I do have a query about the ACL and if it's capable of users belong to multiple groups? I found two previous posts on the subject:

Re: this-redirect() deletes any variable set by using this-set() method.

2008-07-14 Thread CrazyDave
Keep in mind that when you redirect in PHP think of this as a new request and separate process. As soon as you redirect you're exiting. Anything you want from this-set() you need to either pass or pass relevant information to do the $this-set() on the destination controller / action. On Jul

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread AD7six
On Jul 14, 10:24 am, RichardAtHome [EMAIL PROTECTED] wrote: How can this be the preferred behaviour? What do you do if you get a 'bad' user? Even if you delete his user record you are helpless to stop him until he voluntarily logs out! Or, what if you have a regular user who needs his

Re: method to re-fetch page from server

2008-07-14 Thread CrazyDave
Checkout the $this-disableCache(); in your controllers. See http://api.cakephp.org/class_controller.html#6d3203caba0410d7f86e1740c12dfe40 and http://api.cakephp.org/libs_2controller_2controller_8php-source.html#l00771 On Jul 14, 8:02 am, . [EMAIL PROTECTED] wrote: anyone have any idea how

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread RichardAtHome
Yes, but that 1% where it IS needed is critical ;-) I agree that a refresh method would be useful, and if present would allow me to add it to the App Controller to get the effect I'm after. That way everyone is happy :-) Anyone know how to refresh the user record? Is it simply a case of setting

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread AD7six
On Jul 14, 11:12 am, RichardAtHome [EMAIL PROTECTED] wrote: Yes, but that 1% where it IS needed is critical ;-) Why build something into a framework that does nothing (except soak up cycles) 99% of the time - and only might, for a few users, be useful. Why not try debug

Re: Long load time

2008-07-14 Thread TomT
Sorry for the late reaction. It occurs when i haven't used the application for a couple of hours Debuglevel was 2, but also with a debuglevel of 0 the long loadtime occours. Yes i think all the default folders are present: cache logs sessions tests It is writable On 4 jul, 14:52, dr. Hannibal

strange problem -- Missing table

2008-07-14 Thread Bo ozz
Cake keeps showing me this error message: - Missing Database Table Error: Database table albums for model Album was not found. Notice: If you want to customize this error message, create app/views/ errors/missing_table.ctp -- Pretty self-explanatory you

Re: strange problem -- Missing table

2008-07-14 Thread Bo ozz
Never mind... the database structure was cached, clearing the cache solved the problem! On 14 jul, 12:18, Bo ozz [EMAIL PROTECTED] wrote: Cake keeps showing me this error message: - Missing Database Table Error: Database table albums for model Album was not found.

Re: help with layout error message

2008-07-14 Thread .
i seem to be getting this same error message every now and then. Even on my live test server... Anyone has seen this error? Array.ctp view cannot be found? On Fri, Jul 11, 2008 at 1:44 AM, Marc MENDEZ [EMAIL PROTECTED] wrote: Absolutely no idea, and it may be hard to find why since this kind

Re: help with layout error message

2008-07-14 Thread .
It seems to happen in IE7, but not Firefox. hmm.. On Mon, Jul 14, 2008 at 3:41 AM, . [EMAIL PROTECTED] wrote: i seem to be getting this same error message every now and then. Even on my live test server... Anyone has seen this error? Array.ctp view cannot be found? On Fri, Jul 11, 2008 at

Re: phpThumb Helper

2008-07-14 Thread the_woodsman
Sounds awesome - you sure that link works? On Jul 14, 12:56 am, DanielMedia [EMAIL PROTECTED] wrote: Hi all, Just added an article to the bakery. Its a phpThumb helper with cache support for 1.2: http://bakery.cakephp.org/articles/view/phpthumb-helper-2 Hope someone finds some use in it.

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread Dardo Sordi Bogado
Please, stop using scaffold for a real project and don't hack the core. Scaffold is meant to be a helper for rapid prototyping, but when you're done with that fase you need to build the real thing. Use the bake shell to get controllers and views equivalent to those of the scaffold and start

Re: database convention

2008-07-14 Thread Dardo Sordi Bogado
Thanks. I definitely want to go down the 'less cumbersome' road. You're welcome. And then Cake is definetively what you're looking for. On Jul 14, 1:43 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Absolute noob here. I have a question about cakePhp database convention. From my

cake naming conventions

2008-07-14 Thread Sai Krishna
Hi, I've a small query. When I've a database table called application_tools, how do I name cake controller, model files and their respective classes. I tried most of naming permutation and combinations, but I failed while doing cake model validation Thank You Sai Krishna

Re: this-redirect() deletes any variable set by using this-set() method.

2008-07-14 Thread RichardAtHome
...or put them in a session variable On Jul 14, 9:57 am, CrazyDave [EMAIL PROTECTED] wrote: Keep in mind that when you redirect in PHP think of this as a new request and separate process.  As soon as you redirect you're exiting. Anything you want from this-set() you need to either pass or

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread Jonathan Snook
Anyone know how to refresh the user record? Is it simply a case of setting the Auth Session User var? Looking at the Auth source, it populates the key 'Auth.' . $this-userModel, or Auth.User by default. You may want to try just doing $this-Auth-login() again from the edit page (be sure to

Re: cake naming conventions

2008-07-14 Thread Amit Badkas
2008/7/14 Sai Krishna [EMAIL PROTECTED]: Hi, I've a small query. When I've a database table called application_tools, how do I name cake controller, model files and their respective classes. I tried most of naming permutation and combinations, but I failed while doing cake model validation

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread DaveMahon
I think you want to look in the manual under Developing with CakePHP Models Retrieving your Data find. http://manual.cakephp.org/view/449/find Then look at Developing with CakePHP Controllers Controller Methods Interacting with Views set http://manual.cakephp.org/view/427/set You

Re: Problem with cake 1.2

2008-07-14 Thread Fahad
is your 'tmp' folder set to writable? -- Fahad http://frinity.blogspot.com On Jul 14, 8:59 am, Tiago Curcio [EMAIL PROTECTED] wrote: I've intall cake1.2 but a error message appear: Notice (8): unserialize() [function.unserialize]: Argument is not a string [CORE/cake/libs/cache/file.php,

How to start new application with CAKE PHP

2008-07-14 Thread Bhaumik Prajapati
Keeo posted how to start new application with CAKE PHP --~--~-~--~~~---~--~~ 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 this group,

Re: transaction

2008-07-14 Thread [EMAIL PROTECTED]
Check your table type? See here: http://groups.google.com/group/cake-php/msg/58a5cf2597ba On Jul 14, 12:59 am, . [EMAIL PROTECTED] wrote: i am using mysql On Sun, Jul 13, 2008 at 9:06 AM, Marcin Domanski [EMAIL PROTECTED] wrote: Maybe your database doesnt support transactions ? --

overloading the HtmHelper

2008-07-14 Thread korcs
Hi Bakers, I would like to overload the 'selectTag' Method of the HtmlHelper with 1.1xx version of Cake. Does anyone have some elegant solution for this problem? My idea was to create a new helper that inherits from the HtmlHelper class, but actually I just want to change one function of the

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread RichardAtHome
Thanks for the feedback everyone. I'll give it a try today and post back my results :-) On Jul 14, 1:33 pm, Jonathan Snook [EMAIL PROTECTED] wrote:  Anyone know how to refresh the user record? Is it simply a case of  setting the Auth Session User var? Looking at the Auth source, it

Re: overloading the HtmHelper

2008-07-14 Thread Jon Bennett
hi korcs, I would like to overload the 'selectTag' Method of the HtmlHelper with 1.1xx version of Cake. Does anyone have some elegant solution for this problem? My idea was to create a new helper that inherits from the HtmlHelper class, but actually I just want to change one function of

Re: CAKE PHP on BLUEHOST servers

2008-07-14 Thread JBMGT
Gonzalo, I will get you that information. RJ --~--~-~--~~~---~--~~ 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 this group, send email

Re: cake naming conventions

2008-07-14 Thread Sai Krishna
Really thanks Amit, validation works now On Jul 14, 5:37 pm, Amit Badkas [EMAIL PROTECTED] wrote: 2008/7/14 Sai Krishna [EMAIL PROTECTED]: Hi, I've a small query. When I've a database table called application_tools, how do I name cake controller, model files and their respective

Re: Good practice - Ajax action views?

2008-07-14 Thread Sir Tabs
Just a few follow-up questions. In case of ajax, a view can be considered as an element since there is no layout in it.. So, it's considered an element because of how it acts, but I should still make a view file inside of my /views/action folder? As in, / views/action/ajaxUpdate.ctp? Now,

Re: Basic help with render() function

2008-07-14 Thread Sir Tabs
Thanks Mark. The feedback is most helpful. -John On Jul 11, 12:26 pm, mark_story [EMAIL PROTECTED] wrote: On Jul 10, 12:52 pm, Sir Tabs [EMAIL PROTECTED] wrote: Now I think I have the feel for the process: each action that is called attempts, through automagic, torenderthe screen with

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread PaulMan
Thanks Dave an Dardo. Just that was such a simple feature, that i was looking to find it through scaffold, maybe in future releases??? But both of you are correct, i will follow your advise. Once Again, Thank You On Jul 14, 2:19 pm, DaveMahon [EMAIL PROTECTED] wrote: I think you want to look

Re: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread PaulMan
Thanks Dave an Dardo. Just that was such a simple feature, that i was looking to find it through scaffold, maybe in future releases??? But both of you are correct, i will follow your advise. Once Again, Thank You On Jul 14, 2:19 pm, DaveMahon [EMAIL PROTECTED] wrote: I think you want to look

Re: MySQL Rand(), best PHP implementation

2008-07-14 Thread grigri
From an SQL point of view, this seems to be the best all-purpose solution (for me) : http://edrackham.com/featured/get-random-row-with-mysql-without-order-by-rand/ I haven't tried doing it in cake yet though hth grigri On Jul 14, 4:29 pm, Spark [EMAIL PROTECTED] wrote:    As documented in

Re: $this-Auth-user not refreshing after edit

2008-07-14 Thread RichardAtHome
Back again... Added the following to the save block of my edit function: $this-Session-write(Auth, $this-data); ($this-data is provided by the User edit form) Which fixed the problem but with a minor issue (which I can live with for now). On Jul 14, 2:57 pm, RichardAtHome [EMAIL PROTECTED]

How to do two deep sorting on paginator?

2008-07-14 Thread leo
I want to sort on a two deep related table. I have immoble [n:1] zona [n:1] localitat From the immobles controller, in the view I can do: $paginator-sort(__('LOCALITAT_ID_GI_IMMOBLES',true), 'Zona.nom') But what I want to do is: $paginator-sort(__('LOCALITAT_ID_GI_IMMOBLES',true),

Saving other fields after validation (working in 1.2 Beta but not in RC2)

2008-07-14 Thread [EMAIL PROTECTED]
Hello In CakePHP 1.2 beta I do this: ?php class ClassifiedsController extends AppController { ... function form(){ if(empty($this-data)) { $this-Classified-id = $id; $this-data = $this-Classified-read(); }

Re: MySQL Rand(), best PHP implementation

2008-07-14 Thread AD7six
On Jul 14, 5:29 pm, Spark [EMAIL PROTECTED] wrote:    As documented in MySQL manual, getting something random on a SQL call is dozens, hundreds of times slower than a common 'ORDER BY'. They even suggest using the language you are using (php, j2ee, .net) to achieve your

Re: this-redirect() deletes any variable set by using this-set() method.

2008-07-14 Thread mehodgson
If you are setting variables and just need to display an alternate page based on situational data, you might also be able to use $this- render() in your controller to display a different view page. --~--~-~--~~~---~--~~ You received this message because you are

Re: this-redirect() deletes any variable set by using this-set() method.

2008-07-14 Thread mehodgson
...Code got cut off. $this-gt;render() to display the alternate view --~--~-~--~~~---~--~~ 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

Re: phpThumb Helper

2008-07-14 Thread DanielMedia
Looks like it hasn't been approved yet on the bakery. Hopefully it'll go live soon. --~--~-~--~~~---~--~~ 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: How can i filter Results so that only rows ( Records ) with a especific condition, like Result.is_final=1, are available for select.

2008-07-14 Thread DaveMahon
Probably not. Scaffolding is there to help familiarize the developer with the data structures and best-practice coding. It is also really useful for identifying issues with your model relationships before you've invested large quantities of time and energy in trying to make them work. However,

Prototype

2008-07-14 Thread [EMAIL PROTECTED]
Hi all. I'm trying to make a simple AJAX call to a controller action using prototype. I'm not using any of the AJAX helper functions because I think any of them can do what I'm trying to do wich is a simple call. My problem is to know what url I have to pass in the url of the Ajax.Request

Re: phpThumb Helper

2008-07-14 Thread Duncan
It can take a while. I added an article, which took about 2 weeks to get approved, and on the day it was live a user requested a feature addition. Unfortunately I didn't know that editing the article would get it delisted again, so that I'm currently waiting for it to get approved once again -

wizard component question

2008-07-14 Thread Rich Goldman
Hi, does anyone have experience using the wizard component? I'm a little mystified by the following sample code from the wizard tutorial: |function processStepOne() { # do some validation stuff here return true (or false); } | What does do some validation stuff here

hasMany mass editing

2008-07-14 Thread PKirk
Hi guys, going straight to the question. I've got, eg., a shelf that hasMany books. Is there a simple way to edit all the books while editing the shelf? All I've done is a custom variable in the controller that holds all the books data, a loop in the shelf/edit view to print all the input field

Re: phpThumb Helper

2008-07-14 Thread DanielMedia
Wow... 2 weeks? I didn't realize it could take that long. Or that editing would make it unpublished again. This was my first time submitting an article. Thanks for the info Duncan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: phpThumb Helper

2008-07-14 Thread villas
That's such a pity if the Bakery wouldn't be supported for such an avoidable reason. Surely the Cake team can just increase the number of trusted Bakery administrators so that there is always someone on 'duty'. Why not have 20 reviewers, or more? It seems so strange in such an active and

Re: Prototype

2008-07-14 Thread DaveMahon
It ought to. What response are you getting? On Jul 14, 1:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all. I'm trying to make a simple AJAX call to a controller action using prototype. I'm not using any of the AJAX helper functions because I think any of them can do what I'm trying

Re: phpThumb Helper

2008-07-14 Thread Chris Hartjes
On Mon, Jul 14, 2008 at 2:55 PM, villas [EMAIL PROTECTED] wrote: That's such a pity if the Bakery wouldn't be supported for such an avoidable reason. Surely the Cake team can just increase the number of trusted Bakery administrators so that there is always someone on 'duty'. Why not have 20

Re: Prototype

2008-07-14 Thread schneimi
If you do the call from another controller, you have to use ../ controller/action. But you can also use the ajax helper for this: echo $ajax-remoteFunction(array('url' = '../controller/action')); On 14 Jul., 19:37, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all. I'm trying to make a

Re: Prototype

2008-07-14 Thread [EMAIL PROTECTED]
Hi. I've managed to get the call working with /appname/controller/action but now I'm getting no response at all. I'm using Javascript's alert function to see the AJAX response but I'm only getting a no response text :( On 14 Jul, 19:57, DaveMahon [EMAIL PROTECTED] wrote: It ought to. What

Re: How to start new application with CAKE PHP

2008-07-14 Thread Arak Tai'Roth
If you are truly interested in learning about CakePHP, first place to start would http://book.cakephp.org On Jul 14, 7:07 am, Bhaumik Prajapati [EMAIL PROTECTED] wrote: Keeo posted how to start new application with CAKE PHP --~--~-~--~~~---~--~~ You received this

Re: Can't Get Validation to Work

2008-07-14 Thread mwcbrent
I know this is mundane guys but whats up with this, it was a huge selling point for me when I was reading how it could work. Is there a resource that could outline the steps here? On Jul 4, 1:58 pm, mwcbrent [EMAIL PROTECTED] wrote: I seem to be having a problem withvalidation. Everything

Re: Can't Get Validation to Work

2008-07-14 Thread Chris Hartjes
On Mon, Jul 14, 2008 at 3:22 PM, mwcbrent [EMAIL PROTECTED] wrote: I know this is mundane guys but whats up with this, it was a huge selling point for me when I was reading how it could work. Is there a resource that could outline the steps here?

Re: wizard component question

2008-07-14 Thread DaveMahon
Wizard Component? That would be a third-party library AFAIK and you'll need request help from its development community. If you're using CakePHP 1.2, the FormHelper should display form validation errors for you. On Jul 14, 1:23 pm, Rich Goldman [EMAIL PROTECTED] wrote: Hi, does anyone have

Cake php ajax pagination

2008-07-14 Thread puneetratan
Hello Group, I am doing ajax pagination in cake php. but i also have some search criterias which i need on second or third pages also, so that condition retains. right now i am using cake session (storing the condition into session) is there any other way to store condition, so that we can get

Re: strange problem -- Missing table

2008-07-14 Thread puneetratan
Hello In the config file of cake php , there is an option for Cake Cache true and false, and make it false, and then check Thanks Puneet On Jul 14, 3:18 pm, Bo ozz [EMAIL PROTECTED] wrote: Cake keeps showing me this error message: - Missing Database Table Error:

Re: Cake php ajax pagination

2008-07-14 Thread Chris Hartjes
On Mon, Jul 14, 2008 at 3:16 PM, puneetratan [EMAIL PROTECTED] wrote: Hello Group, I am doing ajax pagination in cake php. but i also have some search criterias which i need on second or third pages also, so that condition retains. right now i am using cake session (storing the condition

ACL

2008-07-14 Thread puneetratan
Hello Group, Can anyone let me know, the use of ACL in cakephp, and howz we can implement that ? Thanks puneet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: wizard component question

2008-07-14 Thread ianh
I have a fair bit using the olders form wizard component (I think there are two versions floating around now). Basically each 'step' in the form has two methods associated with it, a method to display the page and an optional ,ethod to validate that specific page. If you return false from the

Re: ACL

2008-07-14 Thread Chris Hartjes
On Mon, Jul 14, 2008 at 3:17 PM, puneetratan [EMAIL PROTECTED] wrote: Hello Group, Can anyone let me know, the use of ACL in cakephp, and howz we can implement that ? http://book.cakephp.org/view/171/access-control-lists http://tinyurl.com/2rfwr However, many people have complained that it

Re: ACL

2008-07-14 Thread John David Anderson
http://book.cakephp.org/view/171/access-control-lists -- John On Jul 14, 2008, at 1:17 PM, puneetratan wrote: Hello Group, Can anyone let me know, the use of ACL in cakephp, and howz we can implement that ? Thanks puneet --~--~-~--~~~---~--~~ You

Db connection with bake?

2008-07-14 Thread Mech7
When i bake (cake bake omg) an app.. it creates a db config like this: class DATABASE_CONFIG { var $omg = array( 'driver' = 'mysql', 'persistent' = false, 'host' = 'localhost', 'login' = 'root', 'password' =

Re: Db connection with bake?

2008-07-14 Thread Jonathan Snook
It's because the connection manager specifically looks for a $default property in the DATABASE_CONFIG. Why rename it? (a few classes seem to be tied specifically to $default so I'd recommend not changing it) On 7/14/08, Mech7 [EMAIL PROTECTED] wrote: When i bake (cake bake omg) an app.. it

Re: ACL

2008-07-14 Thread aranworld
I prefer using the honor system to ACL myself. It is much easier to set up. -Aran On Jul 14, 12:39 pm, John David Anderson [EMAIL PROTECTED] wrote: http://book.cakephp.org/view/171/access-control-lists -- John On Jul 14, 2008, at 1:17 PM, puneetratan wrote: Hello Group, Can anyone

View Caching with AuthComponent

2008-07-14 Thread tdyer
Hi, I am trying to use CakePHP 1.2rc2 with the Auth Component and View caching. I have noticed that if i do not have the view cached everything works as normal and a user that is not logged in will get redirected to /users/login but if there is a view cached then the cached view gets presented

Re: ACL

2008-07-14 Thread John David Anderson
On Jul 14, 2008, at 3:01 PM, aranworld wrote: I prefer using the honor system to ACL myself. It is much easier to set up. In that case, can I get a login account to your production server? ;) -- John --~--~-~--~~~---~--~~ You received this message because

Re: ACL

2008-07-14 Thread John David Anderson
On Jul 14, 2008, at 1:38 PM, Chris Hartjes wrote: On Mon, Jul 14, 2008 at 3:17 PM, puneetratan [EMAIL PROTECTED] wrote: Hello Group, Can anyone let me know, the use of ACL in cakephp, and howz we can implement that ? http://book.cakephp.org/view/171/access-control-lists

Authentication: logged user data

2008-07-14 Thread Janoma
Hello, I have two models: User and News. Each element in the News table has a user associated with it (the author). How do I obtain the username of the currently logged user? I have tried several things, but I can't find where the session info is stored. Thanks for your help!

Re: Authentication: logged user data

2008-07-14 Thread Sam Sherlock
http://book.cakephp.org/view/172/authentication 2008/7/14 Janoma [EMAIL PROTECTED]: Hello, I have two models: User and News. Each element in the News table has a user associated with it (the author). How do I obtain the username of the currently logged user? I have tried several things,

cake core causes error when trying to open cache file

2008-07-14 Thread MarcS
I keep seeing the following error in my error.log file 2008-07-14 15:01:22 Warning: Warning (2): fopen(/home/path/tmp/cache/ persistent/cake_core_default_en_us) [a href='http://php.net/ function.fopen' function.fopen/a]: failed to open stream: No such file or directory in

Re: ACL

2008-07-14 Thread aranworld
The documentation is definitely getting better all the time. You guys are doing a great job. -Aran On Jul 14, 2:07 pm, John David Anderson [EMAIL PROTECTED] wrote: On Jul 14, 2008, at 1:38 PM, Chris Hartjes wrote: On Mon, Jul 14, 2008 at 3:17 PM, puneetratan [EMAIL PROTECTED]   wrote:

Test Suite: parsing a CSV file, where to store file?

2008-07-14 Thread aranworld
I need to create a test case for the parsing of a tab delimited file. Would it make sense to put the test version of this CSV file in the fixtures directory of my test suite? Or is there a more standard place to put a file like this? --~--~-~--~~~---~--~~ You

Customizing the output of Form Helpers

2008-07-14 Thread Tallbrick
I have been hitting Google hard for any tutorials on customizing the output of Cake's form helpers. Namely adjusting the output of radio and checkbox arrays using the 'automagic' form helpers. My current solutions thus far have been a combination of $form- input() and CSS to generate the

Re: View Caching with AuthComponent

2008-07-14 Thread the_woodsman
I know that in the cookbook there's some info on marking particular sections of a view as cake:nocache or something similar, and similarly you coud just set the action as not cached in the Users controller. Could those be helpful? On Jul 14, 9:32 pm, tdyer [EMAIL PROTECTED] wrote: Hi, I am

Re: strange problem -- Missing table

2008-07-14 Thread Siebren Bakker
@Puneet: While changing the configuration file will work, you must remember to then change it back when you are done. The simplest solution, IMHO, is to simply delete the contents of /app/tmp/cache/model, and then cake will simply re-build the cache, including the new model, and you're all done!

Re: phpThumb Helper

2008-07-14 Thread villas
Yes sir, I would volunteer! To be honest, I would put myself in the bottom quartile of Cake skillfullness, but I reckon I still know enough to spot abuse and give a timely thumbs up to a well-written article. I would propose a simple posting to this group would produce many excellent

Re: Test Suite: parsing a CSV file, where to store file?

2008-07-14 Thread Grant Cox
I do the same, and keep the file in fixtures. Makes sense to me :) On Jul 15, 8:33 am, aranworld [EMAIL PROTECTED] wrote: I need to create a test case for the parsing of a tab delimited file. Would it make sense to put the test version of this CSV file in the fixtures directory of my test

need help with CakePHP + YUI

2008-07-14 Thread bingo
hi all, Till date, I have used jquery with CakePHP and it was simple integrating the two as JQuery contains a javascript file. Now I am planning to move from JQuery to YUI as YUI has both JS and CSS which makes developing front end easy. But, I am not sure how to integrate the two as the default

Re: CAKE PHP on BLUEHOST servers

2008-07-14 Thread bingo
Try these two things: 1. deleted all the files in app/tmp folder. Don't delete the folder structure. 2. Make sure you have correctly set path APP_PATH and CORE_PATH global variable in app/webroot/index.php file if both doesn't work, try debugging by putting some echo and die commands to find how

Re: Customizing the output of Form Helpers

2008-07-14 Thread Jonathan Snook
Probably your best bet is to create your own helper that uses the base elements like $form-text and $form-error. Wrap your own HTML around those. Take a look at how $form-input does it and model yours around it. -Jonathan On 7/14/08, Tallbrick [EMAIL PROTECTED] wrote: I have been hitting

Re: redirect and header error but no white space

2008-07-14 Thread haj
Darn, I can't locate what's wrong! Although I was mostly certain about not having extra space or funky control code hidden somewhere in the code, I just copied 1.2 RC2 to a new directory and set up only 3 files for the test - model/controller/ view. And they're like this: article.php (model):

Re: redirect and header error but no white space

2008-07-14 Thread haj
Well, I might find a light in some direction... the model file was written and saved in UTF-8 (all else are UTF-8, too, tho) but when I change this to not UTF-8, it looks working... I feel this very hairly... --~--~-~--~~~---~--~~ You received this message because

Re: redirect and header error but no white space

2008-07-14 Thread haj
Ok, it looks like this php bug is involved. I have been ignorant about this totally.. http://bugs.php.net/bug.php?id=22108 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: redirect and header error but no white space

2008-07-14 Thread haj
So, I basically saved all UTF-8 files without BOM and now things works beautifully. --~--~-~--~~~---~--~~ 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

API 1.2 chm or pdf

2008-07-14 Thread Wisnu Manupraba
dear, where can I get api 1.2 documentation di chm or pdf format? because i'm not online 24 hour a day so that i need offline api documentation thanks -- inoex135 I'm a newbie who want to be a hacker http://inoex135.wordpress.com --~--~-~--~~~---~--~~ You