On 15 oct, 00:01, Sho Shimauchi wrote:
> My Program's memory usage increses when Model->query() is called.
> I found out that a cache DboSource->_queryCache is not flushed in
> source code.
>
> https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/model/d...
> In DboSource->query(), Dbo
AJAX proxy works other way. You call your proxy action via AJAX, this
action call other server via cURL and output result.
On Oct 14, 10:59 pm, "marco.rizze...@gmail.com"
wrote:
> Hi
> I must do a ajax call to an external site.
> I use a proxy to circumvent the Same Origin Policy.
> My action-co
On 14 oct, 23:00, BeroFX wrote:
> How can I select records where a column doesn't contain any value,
> like ''.
>
> Doing it like this $this->Document->find('all', array
> ('conditions'=>array('Document.title'=>''))); produces a WHERE
> `Document`.`title` = NULL query and that's not right.
are
I have a login module on the side of each page if not logged in.
Problem is when a user logs in or out from the home page which is the
$this->Auth->loginRedirect and $this->Auth->logoutRedirect it still shows
logged in or login. How can i refresh the page or something so the page
updates correctl
Thanks Garett for all the good Cake. May you find joy in your life's
new direction.
Larry, our faith is in you. You guys are the best. Bake on!
Cheers,
OJ
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
Adam,
Since being informed by gwoo that he was leaving the project a couple weeks
ago, I have stepped back into a more active role in the project.
At this time I have not selected a new project manager but you can be
assured the project will go on. The lead developers are as active as ever on
the
I haven't tried getClientIP() but I'd check that you have the field
name correct etc, try putting something known in. As an alternative
I've used $_SERVER['REMOTE_ADDR'] in the past which does work.
http://wiltonsoftware.com
--~--~-~--~~~---~--~~
You receiv
My Program's memory usage increses when Model->query() is called.
I found out that a cache DboSource->_queryCache is not flushed in
source code.
https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/model/datasources/dbo_source.php#L211
In DboSource->query(), DboSource->fetchAll() is call
I'm new to CakePHP and working on a project where I need to log the
client IP when they register. When it saves to the DB the IP doesn't
save. This is the code I currently have in the controller:
class UsersController extends AppController {
var $name = 'Users';
var $helpers = array('Html', 'For
Cake only handles integer primary keys, AFAIK.
On Wed, Oct 14, 2009 at 4:41 PM, Leonardo "Hackin" Freire
wrote:
> Hi dudes,
> I'm getting a little problem when populate a select through the
> $form->input.
> In my controller "Contato", where i save the client_id field, I populate an
> variable c
On Wed, Oct 14, 2009 at 5:00 PM, BeroFX wrote:
>
> How can I select records where a column doesn't contain any value,
> like ''.
>
> Doing it like this $this->Document->find('all', array
> ('conditions'=>array('Document.title'=>''))); produces a WHERE
> `Document`.`title` = NULL query and that's
OK - I have managed to find this value, but I have no idea what to set
it to.
I have moved the TMP folder into the webroot - but "WEBROOT . TMP /
settings/" doesn't seem to be working?
On Oct 15, 1:58 am, number9 wrote:
> Hi,
>
> I've setup an install so the cake and app folder are in the /etc/
Hi,
I've setup an install so the cake and app folder are in the /etc/
folder and the webroot/tmp/config folders are in the webroot (so many
sites can share the same codebase).
I'm getting the following errors however:
Warning (2): session_start() [function.session-start]: open(/tmp/
sess_0da65
Looking at some irc logs its true and he left a week ago.
Starts Oct 15th, 15:40
PhpNut: jose_zap actually he [gwoo] resigned over a week ago
PhpNut: right before I took the project over again
Ceeram: wouldnt it be great if PhpNut and Gwoo were both still on the
project
Ceeram: disagreement about
If this is true good luck for him and for everyone in this great
community.
everyday I discover that cake is something that should be delivered as
a curriculum in the academic institutes like cisco and c#
On Oct 15, 1:18 am, Adam wrote:
> "[gwoo] resigned from the Cake Software Foundation and ca
"[gwoo] resigned from the Cake Software Foundation and cakephp
project. Thank you all for 4 great years. Best of luck to the team and
community."
https://www.ohloh.net/accounts/gwoo/messages
Is this true? Any reason behind this decision? Who will step up and
manage this great project?
In the ev
You use the command line and it has an option of building it.
On Oct 14, 2:31 pm, DigitalDude wrote:
> Hey,
>
> I'm using the gettext-method in my app to make it multilingual. For
> the catalogue, I installed PoEdit on my Windows XP machine. That's not
> such a big problem, as I can open a catal
Hey,
I'm using the gettext-method in my app to make it multilingual. For
the catalogue, I installed PoEdit on my Windows XP machine. That's not
such a big problem, as I can open a catalogue file and edit it.
But how can I let cake build up a catalogue on my XP machine? There is
a way, I know tha
Hey,
that sounds nice, I think I'll give it a try and make an example of
this.
I think most apps use a separate Javascript-Client for these purposes,
but
I have to look for infos about that a little longer the next few
weeks...
Regards,
DD
On 13 Okt., 07:39, John Andersen wrote:
> Add a la
Hey Martin,
interesting idea, really! I thought of such a solution for maybe new
messages that a user has or like you pointed out, files etc.
I think I should take some time to think about my database structure,
there may be a few things I could improve and make things a little
smoother and bett
ok, thanks everyone, I got something going on. It works, i just hope
it's the proper way to do it.
On Oct 14, 3:15 pm, Eber Freitas Dias wrote:
> Hey!
>
> First of all, you never route something to a Model...
>
> Take a look at this portion of the CakePHP
> Book:http://book.cakephp.org/view/13/
I'd like to know the same thing... How do you add something or remove
something from a div via ajax
Laburno wrote:
>
>
> Hi all!
> Could someone explain to a total noob like me, what is the best method
> to simply update a div with ajax, using cake 1.2?
> I wish to have a link that call a sear
Hi dudes,
I'm getting a little problem when populate a select through the
$form->input.
In my controller "Contato", where i save the client_id field, I populate an
variable calling "clientes" with this line:
$clientes = $this->Cliente->find('list', array('order' =>
array('Cliente.razaoSocial ASC'
Guys,
below what I did. I think this is better than all the alternatives:
'Date',
'Smr.status' => 'Status',
'Smr.title' => 'Title'
);
foreach($fields as $field => $title){
How can I select records where a column doesn't contain any value,
like ''.
Doing it like this $this->Document->find('all', array
('conditions'=>array('Document.title'=>''))); produces a WHERE
`Document`.`title` = NULL query and that's not right.
What I need is a WHERE title='' query returned.
Hey!
First of all, you never route something to a Model...
Take a look at this portion of the CakePHP Book:
http://book.cakephp.org/view/13/Basic-Principles-of-CakePHP
In fact, you should read all the CakePHP Book in order to understand things
better. For instance, you should need to write any q
Ok... thanks for the tutorial. It helped some. This is my main problem
right now... that in order to use model and controllers they need to
be attached to a database table. And I don't always want to have a
database table that corresponds to that model.
For instance:
I have 3 tables:
artists
al
Hi there,
sorry for the late response. I thought I will get a email if someone
responds.
Thanks for your help so far but that is not solving my problems...
What I would like to do is:
- read all fields from my database Table
- display all Integers as Integers and all booleans as booleans (yes/
I have a number of shell scripts and they share common functions so I
though it would be smart to have a common base class MyShell that
extends Shell and have all my classes extend MyShell. Well, it turns
out if I do so, initialize() method of subclasses is not getting
called. See line 316 in the
as always helpfull ;) thanks guys.
i use full sentences, idd way easier.
shell script works like charm.
i guess it gets compressed/cached by cake anyway (on debug 0), right?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
I am using this system mainly for translations, yes. The site runs in 12
languages, and currently contains over 250 ctp files.
However, an added benefit of the l18n system for me is that the
administrator can also make adjustments to the text on the English site, not
just the translated languages.
We are using slugs for translations in our site, and our site is quite
big... :)
Pablo Viojo
pvi...@gmail.com
http://needish.com
On Wed, Oct 14, 2009 at 1:59 PM, Larry E. Masters aka PhpNut <
php...@gmail.com> wrote:
> Miles,
>
> It is not a suggestion it is the correct way the code should b
Miles,
It is not a suggestion it is the correct way the code should be used.
As I stated in the previous email the pot file is reopened, using poedit for
example, and you merge the changes from your code. Your .po and .mo files
will have the correct msgid and your translators will be able to open
It's a model in a plugin. The name from the plugin is CMS. The class
is defined as follows
class CmsFolder extends CmsAppModel {
On 14 Okt., 18:30, brian wrote:
> How does the model class look? It should be:
>
> class CmsFolder extends AppModel {
>
> Is that correct?
>
> On Wed, Oct 14, 2009
Toby,
It sounds like you are trying to use translations as a way to also change
text.
Examples (forgive me in advance if google did not translate these properly):
"Welcome to the home page of CakePHP the best PHP framework for rapidly
building applications."
Translated to German this would be:
Well if you remove the view and it works, then its obviously something
wrong in the view.
Your best bet is to remove sections of the view 1 by 1 to see what
errors.
On Oct 14, 9:45 am, "Dave Maharaj :: WidePixels.com"
wrote:
> Nothing out of the ordinary.
>
> No there was none (Debugger::log(),
Are you certain that the settings for 'testcases' are correct? Did you
by any chance name the database 'testcases' instead of 'db_testcases'?
On Wed, Oct 14, 2009 at 6:24 AM, Christian wrote:
>
> Hello,
>
> I read several threads about this but not found a final "cake-like"
> solution. A lot of
Nothing out of the ordinary.
No there was none (Debugger::log(), Debugger::dump() anything like that
added anywhere)
Just the data sent back from the controller.
Just weird how nothing was reported when debug was set to 1 or 2 but at 0 it
just died.
I just cleared the entire view and rebuildin
You are not limited to title_for_layout either. You can set any view
variable and use that.
-Mark
On Oct 11, 1:30 pm, mmalca wrote:
> There was an elegant way to set page title anywhere in view using
> CakePHP 1.2 - with $this->pageTitle = 'new title'; This has been
> removed in cakephp 1.3 i
Thanks for the reply. The debug value has always been '2' so that I
see the poopy pants on deployment.
I actually have made no other changes than the .htaccess files until I
was approaching vague awareness from the group. So far I'm still in
the dark.
I can start over easily enough. I still am w
On Oct 12, 2:47 pm, FrederickD wrote:
>
> My site is herehttp://bgnation.ca/reporting/. The initial page
> renders fine (I haven't replaced the lorem ipsum yet... mea culpa...).
> However, when I try to log in on the side bar I receive a 404 error
> forhttp://bgnation.ca/users/login. Using a URL
How does the model class look? It should be:
class CmsFolder extends AppModel {
Is that correct?
On Wed, Oct 14, 2009 at 4:55 AM, Obelix wrote:
>
> Yes i have seen it. But i dont't know what is the Problem with the
> name Standard.
>
> I have generate the model and the Controller with 'Cake bu
Anyone seen this?
The script tried to execute a method or access a property of an incomplete
object. Please ensure that the class definition 'ValidationBehavior' of the
object you are trying to operate on was loaded _before_ unserialize() gets
called or provide a __autoload() function to load th
On Tue, Oct 13, 2009 at 4:16 PM, Dave Maharaj :: WidePixels.com
wrote:
>
> I ran a find and replace for all debug();
>
> Still same thing.
I meant the Debugger class, not debug(). Like Debugger::log(),
Debugger::dump(), etc. If Configure's debug setting is 0 you'll get a
fatal error if you have
Additionally on the subject of PhpNut's suggestion. What if we change
the text string in the view (english one) and then the translated ones
wont match anymore because the msgid has changed. And if we generate
new po files then we would have to translate them all over again.
Thats primarily my rea
On Wed, Oct 14, 2009 at 4:00 AM, Prof. No Time
wrote:
>
> Thanks Brian,
>
> I am using the AUTH component. I want to access Auth.user() in the
> view and I think the only way I can do that is if I can get the
> controller in the view so I can say this->controller->Auth->user(). I
> guess this is
As I understand, you try to build some kind of dashboard. Check this
tutorial, maybe this works for you:
http://teknoid.wordpress.com/2008/12/16/how-to-build-a-dashboard-for-your-application-in-cakephp/
On Oct 14, 5:54 pm, "gimperdan...@gmail.com"
wrote:
> I kinda understand what you're saying,
Hi
I must do a ajax call to an external site.
I use a proxy to circumvent the Same Origin Policy.
My action-controller proxy is:
function proxy($url) {
$this->redirect($url,301,true);
}
In my view when I do the ajax call I get the error :
Error: Http:Controller could not be fo
I kinda understand what you're saying, but I am rather lost with some
concepts in Cake. I have to read more first... Thanks...
PS: legal seu site!
On Oct 14, 11:20 am, Eber Freitas Dias wrote:
> Hi!
>
> The fact that "home.ctp" is the default home for your app it doesn't mean
> you have to use
On Tue, Oct 13, 2009 at 8:46 PM, Larry E. Masters aka PhpNut
wrote:
> Do not send spam like this to the CakePHP google group, I will block your
> account if it happens again.
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpN
Hi!
The fact that "home.ctp" is the default home for your app it doesn't mean
you have to use it!
You can just re declare a new home in your routes using the controller you
want. Something like:
Router::connect('/', array('controller' => 'mycontroller', 'action' =>
'index'));
The second argumen
Yeah, I use it inside a Shell inheritance.
uses('model'.DS.'connection_manager');
$db = ConnectionManager::getInstance();
$dataSource = $db->getDataSource('default');
$sql = '*blahblah*';
$resultSrc = $dataSource->_execute($sql);
$results=array();
while($data=$dataSource->fetchResult())
{
$res
Hi!
If i want to add a record to TABLE A, is there an efficient way to add
a record in the JOIN TABLE for many (or all) records in TABLE B?
I try to build a simple task management. An user adds a task and there
will be added a connection to each other user in the same group as the
current user.
Other difference,
I am using the $dataSource->_execute() inside a Controller, I untherstand
You want to use it inside a Shell.
Is this correct?, Is there a difference in environment?
Regards.
El 14 de octubre de 2009 09:27, Yuncong Zhang escribió:
> Thank you Jorge,
>
> The syntax is correct
Thanks. That helps a little. From what I've been reading it's better
to use Elements for HTML chunks and Helpers for logic. But
requestAction seems like a good option too.
On Oct 14, 10:54 am, Céryl wrote:
> I don't really know the answer, but just to add to that, the home.ctp
> has a controller
I don't really know the answer, but just to add to that, the home.ctp
has a controller, it's the pages_controller.
And also, you can of course use actions from other controllers and
models in the pages-views by using Cake's requestAction. I use it
sometimes to get for instance number of posts, us
On the index of my website I get content from several different tables
in the database. Which is best to use? Elements? Behaviors? or
Helpers? As far as I understand the index(home.ctp) page doesn't have
a model or controller.
--~--~-~--~~~---~--~~
You received thi
AMF. Actually FB4beta2 installs default the ZEND amf in the webroot.
I am trying to make a new data service but when i locate the
rooms_controler.php of cakephp
it give me an error that don't support filename with "_".
It's my second day in cakephp world and will be very glad if someone
can give
While this discussion is going on, I thought I'd raise / ask something...
In a recent project, I needed to make it easy for administrators to be able
to edit the text used throughout the site. The site itself runs in 12
languages, and as a result I have 12 *.po files, one per territory. The
admini
On Wed, Oct 14, 2009 at 4:36 AM, aylaujp wrote:
>
> I have this registration form (user/add/) that allow users to add
> username, contact info and info about themselves. It works well and
> all when I want to submit it directly to the database, but now I want
> to add another step in there, a Pre
Nope. Already went though that page and everything was set right.
On Tue, Oct 13, 2009 at 11:30 PM, AD7six wrote:
>
>
>
> On 14 oct, 08:09, Michael Gaiser wrote:
> > When I uncomment "Configure::write('App.baseUrl', env('SCRIPT_NAME'));"
> in
> > my core.php it seems to work but feels like a ch
On Tue, Oct 13, 2009 at 4:28 PM, hahmadi82 wrote:
>
> If anyone could help with this it would be much appreciated.
I'm not a jQuery expert, but it's not so hard do accompplish that.
I guess making the appropriate ajax call from a .onchange() event
should do the trick.
If I'm not wrong, there's
The support for multiple pagination on the same page is not complete.
The source and API reveals that work did start on this feature but it
was not finished for 1.2. I am not sure if it is suppsed to be in 1.3
or if you have to wait for 2.0.
On Oct 14, 1:30 pm, doze wrote:
> Hello,
>
> Is t
This just sound like the regular Cake find-action
In the action for your view, just use
$this->set($data, $this->yourModel->find('all', array('conditions' =>
array('yourModel.city' => $varCity, 'YourModel.name' = > $varName)));
And the you can acces the data from your table in the view you want
Here is a little help:
http://book.cakephp.org/view/198/options-error
Also there are 'isFieldError' and 'error' methods available also.
Rick
On Oct 14, 8:28 am, jburns wrote:
> I have created a number of add/edit view using the form helper. Here
> is a really simplified example:
>
>
I have created a number of add/edit view using the form helper. Here
is a really simplified example:
create('User');
echo $form->input('first_name');
echo $form->input('last_name');
echo $form->end('Save');
?>
I am not calling $form->error in the views at
On 10/14/2009 8:37 AM, Dave Maharaj :: WidePixels.com wrote:
> I am trying to re-arrange the folders on the server
>
> I would like to place cake folder outside www directory
>
Here's my setup:
I've placed the 'cake' folder in /usr/share/cakephp-1.2.5/
And edited app/webroot/index.php:
if (
> Hi,I have problem in search.
> // in the model
> function doSomething() {
> $this->query('select * from basicdetail');
> }
>
> // in the controller
> function searchtry(){
> return $this->MyModel->doSomething();
> }
> but in searchtry.ctp I can't get my data, I've checked through
> logerror and
Hi,I have problem in search.
// in the model
function doSomething() {
$this->query('select * from basicdetail');
}
// in the controller
function searchtry(){
return $this->MyModel->doSomething();
}
but in searchtry.ctp I can't get my data, I've checked through
logerror and I got that my for loop
Hi, In my cakephp web application I have to search data from single
table on the basis of city and name and display result in another
page.ctp. Please tell me about any search plugin or find condition or
the way to pass query to search data from my table.
I've already tried some tutorial but there
Hello,
Is there a way to do multiple pagination with same model on a single
view?
I know about the $options['model'] in pagination to do multiple
paginations in single view with different models, but what about
multiple paginations with same model.
The model contains a datetime column and I'm t
By posting error messages in debug mode?
[Configure::write('debug', 1);]
On Oct 13, 8:46 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> I stripped out the controller function leaving it like this
>
> function view($id) {
> $this->layout = 'default_right';
> $this->set('reports', $this->Repo
I often have something like (see edit of you previous message): (but I have
bake set up and that is worth doing IMHO quite pain free too) -- cake is on
the path
so
cd ~/www
cake bake mysite
...
bake one
> /cake
> /public_html
> /www
>/mysite
>
/models
Hello,
I read several threads about this but not found a final "cake-like"
solution. A lot of posts are about switching based on URLs, but I need
to switch to another "testcases" database connection based on a
session value I set in an action. This "testcases" connection should
be used until end
Hey. you can do this by adding ajax script. For example if someone will
press preview button ajax script will send a form to view and return with
html.
2009/10/14 aylaujp
>
> I have this registration form (user/add/) that allow users to add
> username, contact info and info about themselves. It
all you need is on book.cakephp.org //Manual. Some very simple apllications.
2009/10/14 aravind raj
> i am new to cake-php
> ..
> can get some free simple cakephp applications ...
>
>
> --
> Aravind "Think Global Act Local"
>
> >
>
--
Pozdrawiam, Mateusz Kaczanowski
--~--~-~--~-
In ajax script you can deine "field" and "value". For example "field" will
be id of textarea and "value" will be a value. Then you can post this data
to your controller. $this->params this function you can recive data.
2009/10/14 Jiru
>
> //select.ctp
>
> if (!empty($options)) {
> foreach ($op
If you want to connect you are using url request or AMF protocol?
--~--~-~--~~~---~--~~
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 thi
Ceryl, your're absolutely right. Didn't occur to me that i can use
$this->set('title_for_layout',...); in view.
Tnx.
On 11 okt., 21:09, Céryl wrote:
> The "echo Title_for_layout" can be in the section of your
> layout.
>
> You can then place:
> set('title', 'YourTitle'); ?>
> anywhere in the v
Hii, developers, in my ajax auto complete program ,
// add.ctp
create('User');?>
select('country_id',array($countries),null,array
('id'=>'countries'),false);
?>select('region_id',array(),null,array
('id'=>'regions'),false);
?>
Yes i have seen it. But i dont't know what is the Problem with the
name Standard.
I have generate the model and the Controller with 'Cake builder'. Cake
has recognized the table and also the models and controllers. At the
next Step i have test the naming Standard with
- debug(Inflector::classify
Yes! Thank you Dr. Loboto, you fixed it.
Cant believe I missed that.
On Oct 14, 7:16 pm, "Dr. Loboto" wrote:
> Your error:
>
> Must be:
> echo $html->css('simplecurve');
>
> On Oct 14, 2:42 pm, Jas wrote:
>
> > my template is views/layouts/simplecurve.ctp
> > and this is the contents
>
> > >
//select.ctp
$v) {
echo "$v";
}
}
?>
here it shows the values in dropdown list when i used to select it
using Ajax. But for the same process i need it in text boxes, both the
input and output. How i can do it ?
regards, jiru
--~--~-~--~~~---~--~~
You rece
I have this registration form (user/add/) that allow users to add
username, contact info and info about themselves. It works well and
all when I want to submit it directly to the database, but now I want
to add another step in there, a Preview. So it would be Form >
Preview/Edit > Publish.
Here'
Your error:
Must be:
echo $html->css('simplecurve');
On Oct 14, 2:42 pm, Jas wrote:
> my template is views/layouts/simplecurve.ctp
> and this is the contents
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> http://www.w3.org/1999/xhtml";>
>
> charset(); ?>
>
>
>
>
>
> echo $s
"AppModel Object" - cake did not find your model file and created
AppModel as Miles and Brian both already said.
On Oct 14, 2:57 am, Obelix wrote:
> Hello,
> i have test if Model available and it's look like good. The
> Programcode
>
> - debug($this->CmsFile->CmsFolder);
>
> gives me Information
Thanks Brian,
I am using the AUTH component. I want to access Auth.user() in the
view and I think the only way I can do that is if I can get the
controller in the view so I can say this->controller->Auth->user(). I
guess this is the wrongest way to go right? But I am new and just
floating around
my template is views/layouts/simplecurve.ctp
and this is the contents
http://www.w3.org/1999/xhtml";>
charset(); ?>
House Points
http://freecsstemplates.org/";>Put your points in!
Home
About Us
Products
i am new to cake-php
..
can get some free simple cakephp applications ...
--
Aravind "Think Global Act Local"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email t
89 matches
Mail list logo