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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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.
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
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
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.
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
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
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
...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
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
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
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
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,
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,
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 ?
--
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
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
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
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
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
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,
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
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
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
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
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]
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),
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();
}
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
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
...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
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
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,
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
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 -
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
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
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
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
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
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
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
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
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
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
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?
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
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
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:
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
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
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
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
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
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' =
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
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
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
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
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
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!
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,
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
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:
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
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
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
@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!
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
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
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
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
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
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):
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
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
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
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
92 matches
Mail list logo