And include the number of articles:
Articles with copenhagen, climate, change (21234)
Articles with copenhagen, climate (123678)
Articles with copenhagen (8899881)
...
Articles with climate (1234567)
And have the above implemented as a link, so the user can just click
on the link to retrieve the
Hi Daniel,
I can understand that you want to be able to change the language,
depending on the users wish, so that an italian in england can read
the site in italian.
But my question is more about the content - will the content be
dependent on the language or the domain extension - for example:
I asked Google for cakephp flowchart and it gave me this as the
first result!
http://abing.gotdns.com/posts/2006/cakephp-delegating-actions-to-separate-classes-flowchart/
Is it what you were looking for?
Enjoy,
John
On Dec 16, 6:37 pm, Alan Asher a...@asteriskpound.com wrote:
I am looking
Hi,
I use cakephp along with classic php code. we had created a tiny query
wrapper and called it doqueryi before cakephp entered the project. now
many times we call the classic clslib from within cake controllers.
Is there a way that doqueryi function can be changed so that the SQL
queries it
Thanks for answering.
I do this because I need to translate the messages of validation. I
found this method in the book and also cake bakers:
http://book.cakephp.org/view/133/Multiple-Rules-per-Field (In the end)
Here is what I do :)
Define the validation in the model with a rule name for each
validation you want to apply to a field, as specified in:
http://book.cakephp.org/view/133/Multiple-Rules-per-Field
Example:
'username' = array(
'users_username_rule' = array( 'rule' = array('custom', '/^[a-z]
Do you in your code have another example where you can send an email
with success?
Enjoy,
John
On Dec 17, 8:22 am, damanlovett ed...@lovettcreations.org wrote:
I'm new to cake and this is my first mass email function. I'm trying
to send emails to a group of users based on a habtm table I am
Thanks John.
But that's my problem. That's what I'm trying and not working.
My model:
var $validate = array(
'username' = array(
'between' = array(
'rule' = array('between', 4, 10),
'last' = true
),
'unique' = array(
Try to rename your error labels, so they do not conflict with existing
error labels!
Change between to username_between and unique to
username_unique, then try again!
Hope this helps ;)
John
On Dec 17, 12:14 pm, pablosky pablo00...@hotmail.com wrote:
Thanks John.
But that's my problem.
Hey everyone,
Here is my controller code.
function info()
{
$xml= 'dialer';
$xml+='Hanif';
$xml+= '/dialer';
echo $xml;
}
I want to return xml data like this dialerHanif/dialer. But it
returns only Hanif.
Your browser will not show the tags, try to use echo htmlentities
($xml); so you can see the content including the tags!
Enjoy,
John
On Dec 17, 12:38 pm, Hanif hanifb...@gmail.com wrote:
Hey everyone,
Here is my controller code.
function info()
{
$xml= 'dialer';
I found the error. I'm very happy. The problem is that within the
relga 'between' was this:
'between' = array (
'rule' = array ( 'between', 4, 10),
'allowEmpty' = false,
'required' = false,
'last' = true
)
In theory when the field is left empty should display the error
message
here we go with 1.3
http://github.com/cakephp/cakephp1x/tree/1.3
Using this url git://github.com/cakephp/cakephp1x.git
once you pull the repo, you must switch to the 1.3 branch
Dan
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
Ok - so my pie in the sky advice has not been precise enough to get it
working off that bat :(
If you could try working on a full record retrieval to ensure
everything is in place etc then work backwards to trim down the
results you are getting.
I am not guaranteeing that it will produce a
We are doing this exact same thing for a long long long list of
counties in the United States. Each having their own sub-domain.
Here's our route:
Router::connect('/court-records-search/:thestate', array
('controller'='states','action'='index'), array('pass'=array
('thestate')));
It will turn
it didnt happen with the aplha release
but with the git rep (head rev.) it now does
On 17 Dez., 07:45, Walther waltherl...@gmail.com wrote:
I've never experienced that before. Are you using the alpha release,
or the git repository?
On Dec 17, 3:58 am, euromark dereurom...@googlemail.com
hi, you have to learn more about cakephp is not so hard to learn
ajax's implementation in cakephp who is made to work with the
prototype framework and ther's a helper for jquery developed by the
community i think, i saw one day a plugin for tchat somewhere do some
google researchs i am sur you
I don't know if this correct but string concatenate with dot.
$xml= 'dialer';
$xml.='Hanif';
$xml.= '/dialer';
echo $xml;
Giro.
2009/12/17 Hanif hanifb...@gmail.com
Hey everyone,
Here is my controller code.
function info()
{
$xml= 'dialer';
Here is the thing:
The basic Idea is to have a list of devices,
every device belongs to a type (say server, switch, screen, mouse...).
depending on the type, different fields should be displayed in the views
(ip address for server, screen size for screen...).
Database (simplified):
Table
I'm new to CakePHP and my little knowledge is derived from minor
modifications to an app created by someone else. Accordingly, my
familiarity with the cache system is limited.
My search of this group on the issue only yielded old bugs that I hope
have been subsequently fixed.
I tried adding a
@Mohamed
Thank you for your suggestions. However, in both your examples, the
form is not actually submitted (unless I am missing something). I need
the form to be submitted (hence calling the action) and the result of
that action be rendered in a popup. I have tried a similar approach
where
I haven't been able to get any email success within a loop.
On Dec 17, 5:01 am, John Andersen j.andersen...@gmail.com wrote:
Do you in your code have another example where you can send an email
with success?
Enjoy,
John
On Dec 17, 8:22 am, damanlovett ed...@lovettcreations.org wrote:
Seems the edit form multi-select for HABTM relationships doesn't
populate previously selected options as it does in 1.2.5.
The selected values are in the data returned by Model-read() but the
form doesn't show them as selected.
Check out the new CakePHP Questions site http://cakeqs.org and help
Since my yoga teacher told me to stop googling after the sixth page
I'm here asking for help (my yoga teacher is a sage woman but she
knows nothing about cake).
I tried to use i18n with a default.po file in an application and it
works.
Unfortunately with a single po file I can't get the best
You are correct. After several hours I discovered the same problem.
You do have to remove id= .
On Dec 15, 6:08 pm, retzzz ret...@gmail.com wrote:
I tried the Blog example in cookbook 1.2. There is a problem in
Chapter 10.1.12 (http://book.cakephp.org/view/340/Editing-Posts) .
You can find
Our previous, cake1.1, code was internationalized using php's gettext
library and the function _().
Cake1.2 now uses __(), which is great, because doesn't require us to
compile .po files anymore.
However, the default behaviour of __() is to echo the translated
string, instead of returning it,
i do agree that this is one of the few remaining inconsistencies
remaining in cake1.2/1.3
all other functions return by default
e.g. in 1.3 the flash() messages now are returned by default, although
scripts/css are inline by default (and therefore echod too).
returning should be the default value
I have plans to change the __*() functions to return by default it has not
been implemented yet
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On Thu, Dec 17, 2009 at 12:31 PM, euromark
Good morning,
I am looking for the best way to implement a fairly simple object
oriented problem in CakePHP.
To summarize I have an object that must depend on a collection of
other objects to calculate a value that must be displayed to the user
as well as used in other calculations throughout
Yeah there was an issue caused yesterday, but its been resolved. Keep
in mind that 1.3 is still in alpha stages so things can break. We try
our best to fix things as quickly as possible, but mistakes happen.
-Mark
On Dec 17, 8:41 am, euromark dereurom...@googlemail.com wrote:
it didnt happen
Yes you are downloading the master branch, and not the 1.3 branch.
The master branch contains the last 1.2 stable release. Which was
in september. You need to navigate/click on 1.3 in order to download
it.
-Mark
On Dec 17, 7:18 am, Dave Porter dave.southpe...@gmail.com wrote:
Thanks Walther,
Ok, apparently I am braindead, because I am still not grasping the concept
of a redirect in cake. I have this page:
productsadmin/compatibles/index/product_id:3365
That has an edit link. Clicking on it takes me to this page:
productsadmin/compatibles/edit/4228
where I can edit the
Jquery is the only engine that seems to have issues Mark. Thanks for
this Js helper by the way. So nice on so many levels.
On Dec 16, 9:39 pm, mark_story mark.st...@gmail.com wrote:
Yeah you need the writeBuffer() at the bottom of the view, or in your
ajax layout. Otherwise the event scripts
Hello,
@Piotr
I have tried using target=_blank as an attribute of the form tag.
It does what you would expect - it opens the result in a new window. I
then tried target=javascript:popup() where popup is a javascript
function that open a popup, but this seems to be ignored by the
browser.
I'm using the flickr api component within an app and it is working
great, but for some reason it is causing a foreach loop to not work (I
have no idea why).
At the moment I have initialized the component as follows:
var $components = array('Flickr');
Is there any way I can replicate
In the past I have done that kind of redirect with this:
$this-redirect($_SERVER['HTTP_REFERER']);
Not 100% if that will work, but I seem to remember there being an
issue with redirecting after editing - perhaps the $product_id is
being lost?
On Dec 17, 8:30 pm, Dewayne Pinion dpin...@gmail.com
try before the redirect:
echo 'product_id is: ' . $product_id;
die();
Andras
On Dec 17, 2009, at 4:42 PM, number9 wrote:
In the past I have done that kind of redirect with this:
$this-redirect($_SERVER['HTTP_REFERER']);
Not 100% if that will work, but I seem to remember there being an
No luck so far. The http_referrer just stayed on the edit page. Using the
code below, I saw null. I did see in the code that I had $id instead, but
when I echoed it the id was the related product that I was editing, not the
main product page.
On Thu, Dec 17, 2009 at 4:48 PM, Andras Kende
I am working on my first cakePHP site and came across an issue I cant
quite figure out. I have a registration form that a user fills out to
become a member. I want to capture the time they fill out the form so
I added a date_added field in my database. In the form the field
would normally be
when i use acl auth in crud mode i can control any items i want. but
a little problem is:
when i am using find function to retrieve (for example posts) this
function will fetch all records.
how can i tell that JUST RETRIEVE RECORDS THOSE I HAVE READ
PERMISSIONS ON THEM ?
purpose of i is the
Hi. I've simple question. It's my code:
echo $ajax-observeField('ContactID',
array('url' = '/Students/generateChart',
'frequency' = 0.2,'update'='flashcontent','success'='jej(request)',
'with'=Form.Element.serialize('ContactID')));
Is any possibility to send another data to controller. For
I have a cake app running and I have installed a site statistics
application in my webroot (piwik). I want to be able to make it so
when an admin logs in on my site, they can click on a link to the
piwik site and it will log in to piwik automatically. When you go to
the mysite.com/piwik/ it
Redirect does not redirect you to the previous page. If you don't have
the ID to the page you want to redirect to, then you cant redirect to
it.
You need to save that ID somewhere if you want to use it.
On Dec 17, 2:01 pm, Dewayne Pinion dpin...@gmail.com wrote:
No luck so far. The
Make sure you have:
var $components = array('email');
and not:
var $components = array('Email');
Oh, make sure you declared the email component in the first place :P
On Dec 17, 6:57 am, damanlovett ed...@lovettcreations.org wrote:
I haven't been able to get any email success within a loop.
On
sure
nothing easier than that
App::import('Component', 'Own');
$this-Own = new OwnComponent();
On 17 Dez., 22:28, number9 xpozit...@gmail.com wrote:
I'm using the flickr api component within an app and it is working
great, but for some reason it is causing a foreach loop to not work (I
have
nice to hear that
especially as it is used in controllers, components etc too
and there the echo default is not that much used :)
On 17 Dez., 19:47, Larry E. Masters aka PhpNut php...@gmail.com
wrote:
I have plans to change the __*() functions to return by default it has not
been implemented
actually, it is supposed to be Capitalized!
var $components = array('Email');
but in the end it does not matter
the convention though is: objects are capitalized
On 18 Dez., 00:39, dw mil...@gmail.com wrote:
Make sure you have:
var $components = array('email');
and not:
var $components =
If you rethink the field type used (datetime instead of timestamp),
CakePHP can handle this for you automatically. If you really wanted a
timestamp for use within your application, strtotime() works
wonders. :)
http://book.cakephp.org/view/69/created-and-modified
On Dec 17, 3:00 pm, Foroct
Cake can handle this quite nicely (and invisibly too). Add a datetime
field called 'created' to your users table - and that's about it
really. Don't include it in the add form. Cake will detect it (make
sure you turn debugging to 2 at least once to make sure the model
cache is refreshed to include
Since you have access to the source code. Just change the source code
directly. For example by setting the form values and using Javascript
to submit the form.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this
Hello all,
I have a function in my controller which reads about 4000-8000 images
(depending on the event viewed) and then return a pagination. Since
those images don't change per event I would like to cache them.
First of all can I use view cache? I enabled cache in core.php, and
use
51 matches
Mail list logo