sometimes, bake used to create 'Parent' keys for associations. this
name, when already existent, used to gives memory errors.
I could work around by baking this model, changing do
'AnotherparentName' and continued baking happily ever after.
spark
On Thu, Mar 6, 2008 at 11:09 PM, Vangel <[EMAIL P
It seems to be what it says: memory usage beyond PHP limits.
In some test I ran , cakephp 1.2 uses around 4MB of memory with one
controller instantiated. [but i'm not a benchmark freak, should
something like this be on docs ?]
So, it's certainly the data or associated data you are fetching from
the usual way is
$myvar = $this->requestAction('/your_controller/action/variables');
and that method returns your precious variable :)
spakr
On Fri, Feb 15, 2008 at 12:21 AM, Snadly <[EMAIL PROTECTED]> wrote:
>
> I don't know if this is possible but I need to call my controller from
> my view
Brett, look:
BEGIN
LOOP1 - $user_online = true;
LOOP2 - $user_online = true;
LOOP3 - $user_online = false;
END
SET VARIABLE TO VIEW
$view->user_online = $user_online;
which value will be there in the view ?
Now, the simplest way, is to use the user array itself:
foreach ($comment
is your domain pointing to /home/yoursusername/yourdomain.com/app/webroot/ ?
spark
On Feb 13, 2008 12:16 PM, Sam Sherlock <[EMAIL PROTECTED]> wrote:
> although this is not for dreamhost (this works for 1and1) without these
> .htaccess adjusments I get a 500 error
>
> AddType x-mapp-php5 .php
level 1 or 2 are DEV modes, and SHOULD NOT be used in a production app, anyway.
in level 0 , cake reads the cached model/database description,
reducing the number of queries to only those made by your
applicatiopn.
spark
On Feb 3, 2008 3:30 PM, cwsTrummer <[EMAIL PROTECTED]> wrote:
>
> hello
just filled a ticket for this problem.
by now, changing the last line of the __sync() function, in
TreeBehaviour, seems to work
from
$model->updateAll(array($model->escapeField($field) =>
$model->escapeField($field) . ' ' . $dir . ' ' . $shift),
$conditions);
TO
$model->updateAll(array($field =
ttp://www.ad7six.com/MiBlog/TrackWhoMakesDBChanges
>
>
> On Jan 15, 12:21 pm, "DJ Spark" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Every model in my project does have a 'created_by' and 'modified_by'
> > field, storing some user
Hi,
Every model in my project does have a 'created_by' and 'modified_by'
field, storing some user ID.
Currently, I'm using a controller beforeFilter to populate a
temporary Model with the $this->Auth->user() , only if $this->data is
full of something, and a beforeSave in the Model, to associat
MODELs.
> O problema é que o nome do Controller (var $name = 'Login';)
> não é o nome de nenhum model do meu banco de dados.
>
>
> Paulo.
>
>
>
> On 14 jan, 14:13, "DJ Spark" <[EMAIL PROTECTED]> wrote:
> > tente:
> > $uses =
tente:
$uses = null;
ou
$uses = array();
isso deve servir, para dizer que o Controller não vai usar nenhum Model
Spark
2008/1/14 pamp_php <[EMAIL PROTECTED]>:
>
> Estou usando o CakePHP 1.2 e me surgiu uma dúvida:
>
>
> Define um controller cujo nome não está relacionad
it's a memory dump file with the size of your allowed memory usage in PHP.
check your apache error logs to find what is causing the problem.
spark
On Jan 7, 2008 6:26 AM, NRGBilly <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I noticed lately that when I have enabled uploads to an application
> using ca
$this->controller->set('email', $this->requestAction('/email/'.$id,
array('return')));
and in the view for this controller, you may just
I started using this approach, and after some memory usage tests, i
found out it's simpler to execute a local action, or use Model to get
the data, and print
hi,
has anyone tried some of those collaborative filter algorithms in
cake ? any piece of code to generate user recommendations ?
i've never done it before, and I would like to see some code, at
least to have some idea. searching the net gave me some theorethical
works but nothing very pr
this checklist should be on the cake manual :)
On Dec 19, 2007 2:24 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> Here's the common response
>
> 1. is mod_rewrite enabled on the server
> 2. are you sure
> 3. is AllowOverride All set on the server
> 4. are all the .htaccess files in place (a lo
since there is no code to evaluate, i may only guess:
maybe, it's about plural form,
maybe, it's about the related model StageStage (are you sure about this name ?)
maybe, it's about you model associantions.
please, show us some of the models, so we can help :)
spark
On Nov 28, 2007 10:28
also, you don't need, usually, to use more than one model per
controller ( uses('Model1', 'Model2') ), if they are associated
somehow:
this
$this->Variations->findAll()
could be
$this->Product->Variation->findAll()
I didn't run any tests, but I can see some points:
class VariationOption ex
Hi,
I just thought of a problem I have, and maybe it's a case where model
would need session data: a model behaviour to change table columns
according to the choosen language. How that language could be stored ?
How model could access it ?
thanks
spark
On Nov 21, 2007 8:54 PM, Grant Cox <[E
if you did check the manual, in 'models' chapter, you find about
model variables:
http://manual.cakephp.org/chapter/models
$primaryKey
If this model relates to a database table, and the table's primary
key is not named 'id', use this variable to tell Cake the name of the
primary key.
Spark
It's because dreamhost's default php 5 doesn't include gettext.
You must compile it yourself (they do have a nice script to do that
for you, in their wiki), or switch back to php4 (the simpler way)
whenever you use __(), you'll stumble into this.
spark
On Nov 21, 2007 1:42 PM, busytoby <[E
You have both in the manual
http://manual.cakephp.org/chapter/installing
put your webroot folder for each aplication in their apache folder, for example
/home/youruser/website1.com
/home/youruser/website2.com
suppose you create an application folder:
/home/youruser/bin
/home/youruser/bin/app
i'm not sure if it's exactly what you want, but if you do name your
action with '_' , it's automagically private and not accessible from
outside your controller.
function _some_strange_function ($id = null) {}
you cannot use it:
/your_controlller/_some_strange_function/3
but you may call it f
thank you matt,
but it's quite an old thread here, and I found that same workaround :\
Anyway, if you compile your own PHP5 with gettext, you'll get the
same results. It's not that complicated, and they have a script in
their wiki to do it.
http://wiki.dreamhost.com/Installing_PHP5
http://w
Hi
I managed to put fastcgi and APC to work on dreamhost, a shared
host, but I'm not very experienced with those concepts...
I'd like to know a little more from cake folks, how to use these
benefits in a good way.
is it any good to use APC as a view cache holder ?
fastcgi on a shared
it looks ok to me
but you have to wait 'till next day to see the analysis. Would this
be the problem ? :)
spark
On 10/16/07, chewie124 <[EMAIL PROTECTED]> wrote:
>
> https://www.serviceforlifeprinting.com
>
> On Oct 16, 3:54 pm, "John David Anderson (_psychic_)"
> <[EMAIL PROTECTED]> wrot
for the bleeding edge,
http://cakephp.org/downloads/index/nightly/1.2.x.x
latest updates in 1.1
http://cakephp.org/downloads/index/nightly/1.1.x.x
these are nightly builds. test them before putting in a production site.
Spark
On 10/6/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On 1
I've searched, but since I'm not sure what to search for, I'll ask here:
Suppose I have a blog system, where a user can edit only his own
posts, an editor may edit all posts, a visitor can only read them.
Is this what ACL is made for ? ACL + some other thing ? ACL is not
that ? Do I need to m
These steps will help:
1.
uncomment the admin route in config.php:
define('CAKE_ADMIN', 'admin');
2.
bake the admin stuff (Models, views, controllers)
the admin views have a 'admin' prefix to the files: admin_index.ctp
they will use the default layout.
to change that, step 3
3.
copy the default
hi,
there's a manual here, where it's all quite well explained:
http://manual.cakephp.org/
you will find interesting the part where they show all the
Association stuff. The last topic in this chapter is about bindModel /
unbindModel
http://manual.cakephp.org/chapter/models
related to the H
you can send a variable to the element:
renderElement('my_element', array('data' => $data));
it's really useful :)
spark
On 7/2/07, Ski <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am writing an application which enables editing of data for a
> parent model and a data for a list of child model
I had this problem a few times, when redirecting to the same URL
with a different variable
/movies/count_votes/
when it finished, i redirected to the same action, to update other rows
/movies/count_votes/500
/movies/count_votes/1000
and so on.
The problem is, if i didn't put an exit(); after
It happens to me when the .chm file is on a network drive.
Don't ask me why MS decided for this 'security feature' :)
spark
On 6/8/07, Gustavo Carreno <[EMAIL PROTECTED]> wrote:
>
> On 6/6/07, Mandy <[EMAIL PROTECTED]> wrote:
> >
> > If on windows, right click on the manual, go to properties,
hi,
Last week was released a nice book covering some PHP Frameworks,
mainly CakePHP, Symphony and Zend and, in a lesser extent, CI and
Prado.
Well written, with good examples, it's intent doesn't seem to cover
all aspects of each framework, but only to show advantages and
problems with each
by changing this:
function index()
{
$this->set('posts', $this->Post->findAll());
}
to this:
function index()
{
$this->set('posts', $this->Post->findAll(null, null,
'Post.modified DESC'));
}
You'll find all these options in the manual, Models chapter
hi,
When I upgraded from cake1.1.13 to 1.1.15 , the website started to
mix the MySQL connection links, or something...
There is another app, OpenAds managing banners. When a banner is
called within the Cake code, cake's SQL queries are not executed
anymore. Any Idea where the problem could b
I have an app with 150.000 pageviews monthly , with some good data
on it (from 5KB to 500KB of text), without any caching, on a Shared
server (dreamhost). Users, loads of HABTM, some simple ACL I made
myself (not really a nice one :), a nice text search, some hand
tailored ajax goodness. It to
i'm not sure what kind of funcionality you need, but i did for
testing purposes a twitter-clone in 4h30m , with actions, friends,
favorites, rss, but without the ajax methods (that would take 2 hours
more, or something like that).
if it's your first time with cake or a MVC framework, things
that would be a nice improvement, i think.
maybe such query would return an array like this:
$this->User->findAll($condtitions.' GROUP BY User.name')
Array (
'User.name' => array(
'John' => array(
[0] => (the row here)
[1] => (the row here)
[2] => (the row here)
),
'Ca
btw, i'm not sure if it's 'too' php-related, but if do link like
that, and the user does have the acrobat plugin, it will just open the
pdf in the same window. Is there a way to the browser *always* the
user to save it ?
thanks
spark (thread adapter :)
On 5/7/07, Arndtinho <[EMAIL PROTE
and what was the solution ?
that could help someone else later :)
spark
On 4/27/07, sean <[EMAIL PROTECTED]> wrote:
>
> sovled! thx
>
> On Apr 27, 11:04 am, sean <[EMAIL PROTECTED]> wrote:
> > After I set up cakephp, I got the following error messages when
> > visiting.
> > -
> >
you probably have already figured it out, but it works like this:
- if you do not define a model (or an array of models) to your
controller, cakePHP will automagically guess the model name by using
the Singular UpperCamelCase form of your controller name. 'tests' ->
'Test' .
- if you use $use
i think i got these errors when using a very big array, with
recursion, using more than the allowed memory for PHP (8MB by default
in the box i use).
check it with $this->Model->recursive = -1; in some places where you
have a lot of rows...
spark
On 4/23/07, Dave <[EMAIL PROTECTED]> wrote:
it's the BOM (2 bytes on the file header).
in notepad++ just select in the menu 'format' / 'utf-8 without BOM'
about the difference between the servers, maybe, the odd one is not
sending the file as utf-8 ...
spark
On 4/18/07, TWIOF <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I don't know if
and most of them are cached when in debug is 0
:)
spark
On 4/8/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
> It's used by the database models themselves.
>
>
> On 4/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > thx for you info
> >
> > but the "SELECT COUNT(*) AS count FROM `grou
Hi Alexandre,
Usually, the best way is setting up an Intermediary model, like in
your example, Membership, and change your associations to :
User -> hasMany -> Membership
and
Group -> hasMany -> Membership
and don' t forget
Membership -> belongsTo -> User
Membership -> belongsTo ->
On 3/26/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
> Not at all, calling requestAction() from elements/view is perfectly
> acceptable. Though you could also call it from the controller and set a var
> for the view to get, but again, I see no issue on the way you are doing it
> now (as a mat
I'd like to know if using requestAction in the view breaks (too
much) the MVC concept, or is it a good use?
I've been doing due to the 'high' load of a website i'm working. An example:
renderElement('listas/destaque-principal',
array('listas' =>
$this->controller->requestAction('/listas/desta
In the latest version of cake, I get this error when I direct the
folder to the cake root folder. If the domain is set to the webroot
folder, it works fine.
I thought it was me, but today I realized it would be a .htaccess
problem or something like that.
spark
On 3/10/07, Mech7 <[EMAIL PROT
On 3/3/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
> I'm wondering what are we expecting from a CakePHP eclipse plugin?
Hi Mariano,
I've been using BEA Weblogic 9.2 for a few weeks, and it's IDE is
also based on eclipse. Man, it's impressive: you control absolutely
everything from ther
Hi sam,
> AFAIK prototype require more code than jquery and is generally not
> unobtrusive, I may be > wrong about this
Prototype maybe or maybe not obstrusive. The same with jquery. Cake's
implementation is a little obtrusive, but i heard something about 1.2
being totally different.
> and n
I'm no sure if cake's findAll function accepts arrays in the fields variable:
Try this, using the format Grant Cox suggested:
$this->Gallery->findAll("id = {$id}","Gallery.name,
Gallery.description, Image.filename");
At least in the API , they say 'fields' var must be a string :>
Spark
O
it seems to happen only on windows machines, probably related to
those silly db drivers we are destined to use forever. (see ms_sql 30
characters limitations :)
spark
On 2/1/07, nate <[EMAIL PROTECTED]> wrote:
>
> It happens when MySQL has to generate a temporary table in order to
> calculate
btw, someone in this list suggested using Vertrigo dev pack, and i
gave it a try, since i was stuck with easyphp for a while.
Vertrigo is perfect and updated often:
http://vertrigo.sourceforge.net/
The only minor downside is you have to copy php extensions from the
php pack (download it a
because that's how cake works.
the table is in plural form
the model name is in singular form
(not much creative today :)
spark
On 1/28/07, Pje <[EMAIL PROTECTED]> wrote:
> Hi,
>
> There is a reason to use plural names in your tables? Because, in a logical
> model, entity names must be in s
Let's suppose your host do have a setup like this, when you do an ftp:
/ < your root, you cannot go to parent folder
/public_html < the docroot folder
no you create a 'cakeapps' folder and a 'cake' folder
/
/public_html
/cakeapps
/cake
now, you copy your whole app fol
I have a few test websites running on dreamhost, and none had any
problem. They worked with de default installation, and with the
advanced , with app path outside the doc root...
spark
On 1/24/07, lance <[EMAIL PROTECTED]> wrote:
>
> On Jan 24, 5:51 pm, "Mark" <[EMAIL PROTECTED]> wrote:
> > An
Hi Norman,
I cannot test it now, but it may be related to the plural form of
'cliente'. Cake has only english rules, and if you are writing in
portuguese, you know there are no rules :]
to avoid that, try to write it in the inflections.php , in the
irregular plurals array.
If the problem persis
btw, wikipedia uses different installs for each subdomain :)
i *think* you could set different subdomains pointing to different
cake 'webroot' folders, and setting some variable there. Or reading
the current domain in bootstap, and setting that language variable...
spark
On 1/11/07, Oneil
Does somebody knows how to use that limit() function to MSSQL , or if it
should already work in cake1.1.12 ?
Any findAll() with Limit is not executed, because it includes the string
LIMIT , not the TOP statement. I checked the adodb code, and it seems to be
implemented (with that goofyLimit = tr
For those tring DBDesigner, it took me a few hours to understand when the
program creates FK in the table (as shown in Larry's images), and why it
*deletes* that field when I delete the association :)
It assumes the key is there only because of the association, even it was
already there.
Not s
It's pretty clear on the blog tutorial: the action for the controller.
Like:
In General
formTag('/controller/action/' .
$html->tagValue('Model/id')?>
In Blog Example:
formTag('/posts/edit/' . $html->tagValue('Post/id')?>
And the action in the controller:
function edit($id = null) /* the id var
Felix, show us you jNinja skills by doing that in an one-liner ;}
happy with jQuery
spark
On 1/3/07, Felix Geisendörfer <[EMAIL PROTECTED]> wrote:
Hey, I'm currently doing a little series on JavaScript programming on my
blog and I think this would be an excellent tutorial for one of my upcom
working on the portuguese translation
On 12/23/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
To the rest of translation maintainers that have uploaded their .po files:
it would be good if you delete your .pot files since they are no longer
needed.
Just to keep things clean :)
-MI
Usually i do something like this:
function del($id = null)
{
if ($this->Model->del($id))
{
$this->Session->setFlash("Article $id has been deleted");
}
else
{
$this->Session->setFlash("Article $id could not be deleted");
}
$this->redirect('/abc');
}
Would it w
anyway, it seems a good thing opening a ticket *and* tell others developers
to be careful on that matter, right ?
not everyone will subscribe to cake trac's rss , i guess :)
spark
On 12/6/06, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
>
> I guess if we could just edit the message submitting
On 12/5/06, walterbyrd <[EMAIL PROTECTED]> wrote:
>
>
> - does cakephp work equally well with php4 and php5?
cake does, but it also depends on your code (like when defining a function
and using & to pass by reference)
- does cakephp have facilities to build and and implent complex forms?
> By t
Hi Felix,
I always do some confusion when using php in windows: there are a lot
of places where php.ini could be, and sometimes if you copied it to a
place (c:\windows , for example), nothing you change in other places
will work.
to use the php in CLI, there must be a php.ini in php folder ,
i think you could make it into the model (although it's done in every
model), using 'conditions' in the association array...
var $belongsTo = array('User' =>
array('className' => 'User',
'conditions' => '',
i got it working by setting the whole app path (on a standard install):
D:\webroot\mf\_final\cake\scripts>php bake.php -app D:\webroot\mf\_final\app
spark
On 12/1/06, gwoo <[EMAIL PROTECTED]> wrote:
>
> how about you try to debug the problem and submit a patch. Before you
> do that make sure
On 11/28/06, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
> Version From VERSION.txt:
> There is a input area for supplying the version number of CakePHP, this is
> located in version.txt in the root directory, I update this version number
> on every merge to the trunk, and it is used a
i'll try changing that , and see if the problem disappears.
thanks , nate (again :)
spark
On 10/10/06, nate <[EMAIL PROTECTED]> wrote:
>
> It has to do with your database configuration (possibly the encoding of
> the table?). Someone who knows more on the subject should weigh in
> here, but
I had the same problem here. how is your configuration ?
mine is:
- winXP
- mysql 5
- php 5
- apache 1.3
spark
On 10/8/06, Kevin Uni <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am using cake to do a custom query just like "select count(*) as num
> .. from tab1 left join tab2 on tab1.id = tab2.t
it is necessary to name the ids for the elements in this form , so
prototype can use serialize() :
http://wiki.script.aculo.us/scriptaculous/show/Sortable.serialize
I'm not sure why, but onComplete only works with ids in that format
(yes, took me a while to figure out that :)
spark
O
hi marcos,
did you read the manual or something ? What you area asking is all
answered there.
I strongly suggest you follow these sections in the manual:
http://manual.cakephp.org/chapter/models
http://manual.cakephp.org/chapter/controllers
http://manual.cakephp.org/chapter/views
They wil
I have a Movie and a Director models, both with HABTM associations.
The movie is ranked in my site and have a Movie.position field.
I could not find a way to show , let's say, the 30 first directors
(DISTINCT) ordered by the Movie.position. Any ideas ? custom SQL calls
only ?
thanks
spark
--
and if you are using windows/*nix
spark
On 9/19/06, DJ Spark <[EMAIL PROTECTED]> wrote:
> hya,
>
> Funny thing, i'm having the same problem now :)
> Which PHP/MYSQL/APACHE version are you using ?
>
> spark
>
> On 9/5/06, Ámon Tamás <[EMAIL PROTECTED
hya,
Funny thing, i'm having the same problem now :)
Which PHP/MYSQL/APACHE version are you using ?
spark
On 9/5/06, Ámon Tamás <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I try the next query:
>
> "SELECT workers.nev, worker_id, item_id, sum(pays.amount) as amount
>FROM pays,
I had the same problem here, with BOM bytes added to some files.
Just to keep people aware, it ate my doctype declaration, thus,
changing the way browsers interpreted the page, changing font sizes
and all, paddings, etc. really weird.
I had to open every file, since I didn't knew wich ones whe
two things:
- there is a 'count' function builtin cake:
$count = $this->Email->findCount('');
- i'm not sure what you are trying to achieve with this query, but
you surely could do it the cake way:
- $magasins = $this->Email->findAll('', 'magasin');
hope it helps :)
spakr
On 9/12/06,
do two hasMany relationships to that table, and make a model for it
i've done that way to make a 'Vote' model , where I have a user_id
and a movie_id , and the value for the vote also.
phpnut said something about cake having this in a future release
(adding different fields to a join table)
s
Hi sonic,
In debug mode > 0 , cakephp caches models for a few seconds (20 sec)
. In production mode, it's much longer (a day ? i'm not sure).
Besides that, this thread goes deeper on optimization issues:
http://groups.google.com/group/cake-php/browse_thread/thread/75ecc8bee3f7ddfe/0572659f27
yep, you have to, that's how cakephp sets relationships between models
in the User model you say something like
and in the Group model
And that's it.
IF you don't follow the cake conventions for ids, tables, or if you
need some different queries or conditions for a Model (for example,
you
from the cakephp manual, quoted below, you can see how adding a few
parameters to the findAll function you can limit the number of rows
retrieved:
example:
$this->User->findAll('',null, '', 20, 2);
this gets the second page of results, containing 20 items each.
If you use a variable $page, for e
the problem seems to be you are using some helpers , and you didn't
include the HTML helper, which contains the function $html->link()
just add the html helper to your controller.
tell us if it works :)
spark!
On 8/21/06, purepear <[EMAIL PROTECTED]> wrote:
>
> Hi,
> my problem:
>
> I have a
is there a list of reserved words ?
if not , i suggest making one to the 'naming conventions' area in the manual.
going to add it in trac system
spark
On 8/14/06, nate <[EMAIL PROTECTED]> wrote:
>
> You can't have a model named File. It conflicts with Cake's internally
> File class. Bad id
i *think* if you set the id of a MOdel, you can findAll the related Models
$this->Client->id = 3;
$this->Client->Project->findAll();
anyway, if you get the client using read() , find() or findAll() ,
you get an array with all the associated data.
try this in your controller:
$client = $this->
Just to keep more clear to those new to cake: requestAction() is
rendered without the compelte layout, but the view is rendered
properly.
You might use it as an element that handles data. The example in the
manual is quite nice: http://manual.cakephp.org/chapter/7
Spark
On 8/8/06, John Dav
must say to the newcommers it never happened with this frequency
before. usually , it's only one or two per week :)
spark
On 8/2/06, francky06l <[EMAIL PROTECTED]> wrote:
>
> Thanks to the modos. Actually is also a good sign of the vitality of a
> group ;)
>
> Thanks
>
>
> >
>
--
[web] http
probably you have a controller 'Projects' , with a action name() inside
if you take the task name as a variable for the name() action, you
might call the Tasks controller with requestaction()
function name($projectid=null)
{
if(!projectid)
{
//finds the project with a specific name
}
but you can pass parameters in request action:
$somevar = $this->Modelname->requestAction('/listings/show/4',
array('return'));
or in the view
controller->requestAction('/listings/show/4',
array('return')); ?>
spark
On 7/30/06, darx <[EMAIL PROTECTED]> wrote:
>
> Fine. I'll follow your t
yo teemow,
thanks for the tip here, i'll check if that's what I need here :)
see ya in koln :)
spark!
On 7/20/06, teemow <[EMAIL PROTECTED]> wrote:
>
> hey spark,
>
> there is a lucene lib in the zend 'framework'. you just have to put it
> in your vendors folder. so if you like to implemen
On 7/19/06, nate <[EMAIL PROTECTED]> wrote:
> (3) Or, make isLoggedIn a private method (prefixed with '_' of
> AppController, so you could call $this->_isLoggedIn() instead of using
> requestAction, which is slower, and largely pointless in your case.
>
maaannn, the things we learn here, make lif
uld have a common data interface for the applications we write with,
> that we could make available as a web service. I'm sure
> there are tons of sweet things we could do with that.
>
> Alright, but before I start to sound like an employee of this big company
> that tries to index the en
quite elegant solution, gwoo ! thanx!
i'm also working on a tiny search for a project in cakephp, Felix.
Anyone have some references on search enhancements? ( like that in
youtube, for example, where a string is sent and it says it comes from
a search result, a ranks it better on the next searc
in Product Model
var $belongsTo = "Color,Category";
some would suggest to be more verbose on the declaration:
var $belongsTo = array('Color' =>
array('className' => 'Color',
'conditions' => '',
'order
before saving , set the password as
$this->data['Model']['passwordfield'] =
md5($this->data['Model']['passwordfield']);
might be on a beforeSave() callback or in the controller itself.
spark
On 6/28/06, ivan <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I need to save a field encoded md5. Let's say I
i had the same problem (was using a basic easyphp install)
- upgrade to latest php
- just be sure to have the php on the windows path
- the php.ini MUST NOT have those custom easyphp variables, since
they cannot be interpreted by php alone. I think the php.ini also must
be copied to the php f
Probably you might use requestAction in your articles 'view' function
requestAction('/comments/add');
requestAction('/comments/index'');
and, in the comments add function, use redirect() to go back to the
Article page ... (just like the default delete() function) , using
getReferrer(); from th
not something like this ?
$this->MyModel->find('MyModel.parent_id = 0');
this should return only those MyModel (and associated Models,
depending on the $recursive depth) that respect this specific
condition.
spark
On 6/22/06, Matt <[EMAIL PROTECTED]> wrote:
>
> Hi Samuel,
>
> I saw that se
Pascal PORTIER <[EMAIL PROTECTED]> wrote:
> Thank you for you notice.
> I am thinking of using a real web server to create my apps.
> I would like to use Apache2, PHP5, MySQL 4 or 5...
>
> 2006/6/21, DJ Spark < [EMAIL PROTECTED]>:
> >
>
> just a tip, atkati:
1 - 100 of 114 matches
Mail list logo