Re: Site down after restart

2014-06-03 Thread Ma';moon
What about your web server? is it up? On Mon, Jun 2, 2014 at 2:58 PM, Hod Benbinyamin wrote: > I installed latest cakephp (2.5.1 stable) > Open browser on it and was able to see homepage. > > Restarted the machine and now i get 'webpage is not available' > ping works > > Any idea? > > -- > Like

Re: Online baking tool for CakePHP

2013-04-10 Thread Ma';moon
The tool is awesome, Thanks for sharing :) Just a small question though, dont you think that it reinvents the wheel? i mean bake tool is already easy to use on a localhost machine so why would anyone need to use an online baking tool? On Wed, Apr 10, 2013 at 9:19 AM, Christian Cadéré wrote: >

Re: Benchmark framework article

2013-03-28 Thread Ma';moon
With all due respect but this benchmark is ridicules!, comparing native coded application with a framework app doesn't make any sense, worst yet comparing programming languages in terms of performance taking in mind the natural diffs between programming languages, its almost like comparing water wi

Re: New to frame work

2013-02-05 Thread Ma';moon
Start with the cookbook http://book.cakephp.org/2.0/en/index.html On Tue, Feb 5, 2013 at 1:23 AM, Mohammed Azharuddin wrote: > How r u all? hope this mail reach you all with Good health.. > > i'm new to frame work i never used frame work in my projects i like to > develop project using cake ph

Re: Best practice for EXTERNAL api?

2013-01-07 Thread Ma';moon
http://book.cakephp.org/2.0/en/models/datasources.html Check out the example usage of "FarAwaySource" On Mon, Jan 7, 2013 at 9:59 AM, marcus33cz wrote: > Hi all, > > I have several external APIs which I'd like to use - such as this one: > http://www.pinnaclesports.com/apimanual/commands.aspx >

Re: Error: Call to a member function find() on a non-object

2012-10-18 Thread Ma';moon
Just check your database permissions and make sure that the user mentioned in your database.php file is actually able to use the database mentioned by its name in the same file, my hunch is telling me that this is your problem :) On Thu, Oct 18, 2012 at 8:22 PM, Russell Brown wrote: > I should al

Re: Error: Call to a member function find() on a non-object

2012-10-18 Thread Ma';moon
Does it say at what line the error occurs? What does your web server's error log say? On Thu, Oct 18, 2012 at 6:14 PM, Russell Brown wrote: > Yes. I did a clean install and still get the error. > > I get the DebugKit toolbar -it works fine. > > For some reason I can't just type debug($this); bef

Re: Error: Call to a member function find() on a non-object

2012-10-15 Thread Ma';moon
Will you also dump your model file contents On Mon, Oct 15, 2012 at 7:58 PM, Russell Brown wrote: > Error: Call to a member function find() on a non-object > File: c:\wamp\www\cake222\app\Controller\AddressesController.php > > I get the error on the $this->set('address_list', > $this->Address->

Re: ImageMagick & Cake Ver 2.0.4

2012-05-21 Thread Ma';moon
Why don't you rais up debug mode or check your server's logs and see whats happening! Trust your self, you can do it :) On Mon, May 21, 2012 at 7:20 PM, Blues Clues wrote: > Hi > I have added this code by mapping the file location to files/upload/ under > webroot folder of Cakephp. However, noth

Re: not updating modified, how ?

2012-01-28 Thread Ma';moon
try something like: $this->request->data['Device']['updated'] = false; On Sat, Jan 28, 2012 at 4:37 PM, Charles Bueche wrote: > Hey bakers, > > I'm using CakePHP 2.1 on Ubuntu. > > I'm trying to update a single DB field, without CakePHP updating the > "modified" field. Here is my code: > >

Re: Confused: Trying to get values from a table outside of the controller.

2011-11-23 Thread Ma';moon
100% Granted! On Wed, Nov 23, 2011 at 2:18 AM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Don't just rely on recursion. Always use the containable behaviour. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 2

Re: Confused: Trying to get values from a table outside of the controller.

2011-11-22 Thread Ma';moon
If there is any kind of association between `Post` and `Period` models then you can easily play with model's `recursive` flag to obtain what you want, otherwise you may manually load `Period` model in your `PostsController` and fetch the information you seek, code language: $this->loadModel('Period

Re: How to get client mac address in PHP ..?

2011-11-21 Thread Ma';moon
HTTP doesn't carry the MAC address over to your server, plus this is not a CakePHP question so i suggest using google before asking such a question in a specific mailing list that is dedicated for a specific topic. On Mon, Nov 21, 2011 at 1:15 PM, rrvasanth wrote: > Dear friends... > > I need to

Re: can't connect to db

2011-11-05 Thread Ma';moon
Most likely you need to leave the port section empty in your db configuration On Sat, Nov 5, 2011 at 9:55 PM, bluethundr wrote: > ## cake cannot connect to the databse > > Your tmp directory is writable. > > The FileEngine is being used for caching. To change the config edit > APP/config/core.ph

Re: I hate CLI

2011-11-01 Thread Ma';moon
webroot/media/transfer > > ...runs without error and set the permissions for the media/transfer > directory. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 1 Nov 2011, at 11:02, Ma'moon wrote: > > Will you try without -R option > >

Re: I hate CLI

2011-11-01 Thread Ma';moon
Will you try without -R option On Tue, Nov 1, 2011 at 12:38 PM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > /Sites/mysitename/app > > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 1 Nov 2011, at 10:33, Ma'moon wr

Re: I hate CLI

2011-11-01 Thread Ma';moon
b: +44 (0) 7973 481949 > Skype: jeremy_burns > http://www.classoutfit.com > > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 1 Nov 2011, at 10:02, Ma'moon wrote: > > try this chmod a+rwX -R webroot/media/{transfer,filter} > > On Tue, Nov 1, 2011

Re: I hate CLI

2011-11-01 Thread Ma';moon
try this chmod a+rwX -R webroot/media/{transfer,filter} On Tue, Nov 1, 2011 at 11:26 AM, Jeremy Burns wrote: > I'm a GUI man me. CLI stuff just makes me go blank. It's like staring > into a black hole. Give me something I can point at and click and I'm > a happy man. > > I'm following the tutoria

Re: CakePHP and subdomains

2011-10-23 Thread Ma';moon
think that i can live with that for now. Hope this will help somebody someday. Thanks Guys. On Sun, Oct 23, 2011 at 10:03 AM, Ma'moon wrote: > Hello Guys, > > I have a problem that i don't really know how to fix since am not really > an apache nor mod_rewrite expert

CakePHP and subdomains

2011-10-23 Thread Ma';moon
Hello Guys, I have a problem that i don't really know how to fix since am not really an apache nor mod_rewrite expert, i did my homework by researching and googling but with no luck so far. I need to create subdomains beside the directory that contains my CakePHP installation, right inside the dir

Re: Problem when downloading a video file

2011-10-04 Thread Ma';moon
Can you post your controller code and let us see how you exactly implemented this? On Tue, Oct 4, 2011 at 10:41 AM, thomaus wrote: > Nobody no clue? > > On Oct 3, 5:36 pm, thomaus wrote: > > Thanks for your answers. > > > > Here is how I set my header (the video file is a .mp4 one) > > > >

Re: Problem when downloading a video file

2011-10-03 Thread Ma';moon
Though i would diffidently put the file in webroot to save server resources and perhaps yet better i would try to put it in a CDN but if you would like to serve the file the way you described, have you written [*header* ("Content-Type: *video*/x-ms-wmv");] before you send the file back to client.

Re: Array reconstruction

2011-09-25 Thread Ma';moon
How about the tree behavior http://book.cakephp.org/view/1341/Basic-Usage On Sun, Sep 25, 2011 at 7:29 AM, g.dimakopou...@velicron.eu < g.dimakopou...@velicron.eu> wrote: > I want to turn the following array into an associative one. The > original array is indexed like [0],[1],[2],…[n]. The funct

Re: baker to commit to svn

2011-09-12 Thread Ma';moon
Do you mean having the generated files being committed to SVN automatically after baking the project? On Mon, Sep 12, 2011 at 5:38 PM, hr_software_developer wrote: > You can make classes based on relationship using cake-baker, right? > ( view, model, and controller classes ) > Once I bake them I

Re: New developer; Cake is NOT able to connect to the database.

2011-09-06 Thread Ma';moon
Just a quick small hint, never use "root" account for production, instead create another database user and grant for it the desired permissions. and by the way, if "root" worked for you then clearly you have a problem with the "previous" user's permissions or existence. On Tue, Sep 6, 2011 at 1:24

Re: Streaming CakeFest 2011

2011-09-03 Thread Ma';moon
Yep, they're perfectly working :) Thanks Larry On Sat, Sep 3, 2011 at 6:46 AM, Larry E. Masters wrote: > They are streaming, check again. > > -- > Larry E. Masters > > > On Sat, Sep 3, 2011 at 4:31 AM, Ma'moon wrote: > >> Neither the first one! >&

Re: Streaming CakeFest 2011

2011-09-03 Thread Ma';moon
Neither the first one! On Sat, Sep 3, 2011 at 5:25 AM, Larry E. Masters wrote: > We are streaming CakeFest 2011 from Manchester at live.cakephp.org > > We have 2 tracks > > http://live.cakephp.org/ > > http://live.cakephp.org/pages/second_track > > > -- > Larry E. Masters > > -- > Our newest si

Re: Streaming CakeFest 2011

2011-09-03 Thread Ma';moon
second track is not streaming! On Sat, Sep 3, 2011 at 5:25 AM, Larry E. Masters wrote: > We are streaming CakeFest 2011 from Manchester at live.cakephp.org > > We have 2 tracks > > http://live.cakephp.org/ > > http://live.cakephp.org/pages/second_track > > > -- > Larry E. Masters > > -- > Our n

Re: View caching with gzip

2011-09-01 Thread Ma';moon
> You think I can condition my gzip in boostrap.php ? > > On Thu, Sep 1, 2011 at 5:53 PM, Ma'moon wrote: > >> put ob_start ('ob_gzhandler') in your bootstrap.php file. >> >> >> On Thu, Sep 1, 2011 at 10:27 AM, Teddy Zeenny wrote: >> &

Re: View caching with gzip

2011-09-01 Thread Ma';moon
put ob_start ('ob_gzhandler') in your bootstrap.php file. On Thu, Sep 1, 2011 at 10:27 AM, Teddy Zeenny wrote: > Hey guys, > > Does anyone have an idea on how to gzip cached views ? > > The way I would do it is use ob_start ('ob_gzhandler') in my > controller's beforeFilter. > > The problem is w

Re: SQL / PHP Beginner....

2011-08-18 Thread Ma';moon
Hi Edmund, There is a big difference between PHP and CakePHP, PHP is a web/scripting programming language while CakePHP "Which was built using PHP" is actually a web application framework that you use to build web applications. I suggest getting your hands really dirty with PHP first before you co

Re: View and Edit at the same time

2011-08-14 Thread Ma';moon
Put the same content that you got from the database in a form contained within a hidden , offer a link or a button named "Edit", onclick at that button show the hidden that contains the form which will save "edit" the data. Am not really sure if that would be a CakePHP related issue though! On S

Re: Check username availability using jquery

2011-08-07 Thread Ma';moon
The only thing that i can see that worth the concern is using $this ->params['form']['username'] and also $this->User->query() , its been clearly stated in the cook book that using "query" instead of "find" will make you go with your own to prepare the SQL statement that you wish to execute, i wou

Re: CakePHP 1.3.11 and 2.0.0-beta released

2011-07-26 Thread Ma';moon
Thank you so much for this wonderful effort, i would love to stay that i have been always a happy baker but now am truly much happier than ever :) Please guys keep up the great work, without this amazing effort our life will much harder, i just love CakePHP, i truly lovin it :) On Tue, Jul 26,

Re: Where should i contact right people in CakePHP.org because this security critical problem

2011-06-23 Thread Ma';moon
On Thu, Jun 23, 2011 at 3:22 PM, majna wrote: > It's not just database.php credentials issue, > debugger "code and context" can output any code excerpt. > For example, you may have API_KEY just above some code that produce > PHP notice, > and debugger will show your key. > > Proposal: > - add not

Re: 404 error

2011-05-02 Thread Ma';moon
just check the URL http://localhost/cakephp1.3.8/ and see if you get a nice default welcome page colored and styled, if you get this page then your mod_rewrite is ON otherwise it will be OFF or not enabled. Ma'moon On Mon, May 2, 2011 at 3:51 PM, jyoti bhandari wrote: > Ma'moo

Re: 404 error

2011-05-02 Thread Ma';moon
Can you see the page "http://localhost/cakephp1.3.8/<http://localhost/cakephp1.3.8/posts/index>" rendered properly with all style sheets elements? are you sure that you have mod_rewrite enabled in your web server's configuration? Ma'moon On Mon, May 2, 2011 at 3:3

Re: 404 error

2011-05-01 Thread Ma';moon
What is the URL that you are calling in order to render the page? Ma'moon On Mon, May 2, 2011 at 8:00 AM, jyoti bhandari wrote: > It is already set to 2. :( > > On Mon, May 2, 2011 at 4:48 AM, Ma'moon wrote: > >> in file app/config/core.php change the value

Re: 404 error

2011-05-01 Thread Ma';moon
in file app/config/core.php change the value of {debug} and set it to "2", refresh the page and check if it throws any errors or warnings. On Sun, May 1, 2011 at 7:20 AM, Jo wrote: > Hi, > > I am new to cakephp. I am installing the cakephp and created model, > controller and view according to th

Re: How to detect if a model is being loaded or not

2011-04-02 Thread Ma';moon
Thanks a lot :) On Sat, Apr 2, 2011 at 3:00 PM, cricket wrote: > On Sat, Apr 2, 2011 at 12:44 PM, Ma'moon wrote: > > Hi, > > Is there any way to detect if a model is already been loaded or not, > > something like a method called "$this->isLoaded($modelName)&

How to detect if a model is being loaded or not

2011-04-02 Thread Ma';moon
Hi, Is there any way to detect if a model is already been loaded or not, something like a method called "$this->isLoaded($modelName)" that you can call from within the controller? Thanks in advance for any help :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.

Re: Performance of CakePHP 2.0

2011-03-23 Thread Ma';moon
1) Have you tried using a bytecode cacher? i think that you should consider using APC or Xcache if you are not using one of them already! 2) Have you considered using HTML Caching for your site, this will "seriously" help reducing server processing! On Wed, Mar 23, 2011 at 1:28 PM, Ziki wrote: >

Re: cakephp Messaging sysytem

2011-02-24 Thread Ma';moon
boost the performance we saw that IMAP was the best solution ever for this kind of tasks Ma'moon On Wed, Feb 23, 2011 at 8:08 PM, euromark wrote: > sure > > CREATE TABLE IF NOT EXISTS `comm_conversations` ( > `id` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', &g

Re: paginating issue

2011-01-20 Thread Ma';moon
Can you post a code sample for what you are trying to accomplish? On Thu, Jan 20, 2011 at 8:20 AM, OmniproX wrote: > Hi all, I wanted to know, if you have ever run into this issue. > > I know how to paginate a query from the controller fine. > > But how do you paginate a custom array that you cr

Re: to Test or not to Test

2011-01-09 Thread Ma';moon
adopted by CakePHP 2.x, above this and that i am only throwing my 5 cints :) On Sun, Jan 9, 2011 at 6:23 PM, euromark wrote: > the problem with the book is that its mainly phpunit specific > not a good resource for a cake1.x user which wants to start off > testing :) > > On 9 Jan.

Re: to Test or not to Test

2011-01-09 Thread Ma';moon
Here is very good book for unit testing, i suggest you start reading it instead of reading tuts or articles in a separated manner: http://www.limespace.de/wp-content/uploads/2009/12/practical-php-testing.pdf You can legally use the book and distribute it :) On Sun, Jan 9, 2011 at 5:13 AM, netusco

Re: Auth password hash help

2011-01-04 Thread Ma';moon
$this->data['User']['password'] gets hashed automatically from Auth component, you don't need to hash it cause it will be already hashed, if you don't want to have such a behavior try renaming your password form field to be something other than "password", say "passPhrase" or something else On Sun

Re: Short Names Navigation (like Twitter and Facebook)

2010-12-21 Thread Ma';moon
Check out the sluggable behavior http://bakery.cakephp.org/articles/mariano/2007/03/24/sluggable-behavior On Wed, Dec 22, 2010 at 1:23 AM, tcornett wrote: > I am trying to get an app to work with Twitter-like and Facebook-like short > names for navigation (like http://twitter.com/) where XXX

Re: Register Function--Hashing Password and Auto-login Causes Password Validation Disabled in Register Page

2010-12-18 Thread Ma';moon
First, why you are not using Auth component? this will make your life a lot easier! Second, what are your validation rules? On Sun, Dec 19, 2010 at 8:12 AM, John Maxim wrote: > Modified function code: (NEW) > > function register() >{ > if (!empty($this->data)) >

Re: Hello

2010-12-12 Thread Ma';moon
How about google? its a very good search engine and works really well in such cases :) On Fri, Dec 10, 2010 at 10:17 PM, a.g.p. wrote: > Hi, does anybody can tell me how to show a video on a website with php, > once it has been uploaded into the server? > Thanks! > -

Re: use APC & Memcached at the same tim

2010-12-06 Thread Ma';moon
nd assign the default handler > "Cache" for memcached, or vise versa ?? > > On Dec 6, 11:55 am, "Ma'moon" wrote: > > I am not really sure why we do have an APC section in core.php, APC > should > > run automatically and it doesn't reall

Re: Using or not using PHP framework

2010-12-06 Thread Ma';moon
Just take a look at the name, its simply CAKE :-) On Mon, Dec 6, 2010 at 1:22 PM, burzum wrote: > I disagree that you have to invest 100 hours learning in the begining > if you already know PHP. > > When I started using CakePHP I migrated a project that was already two > month in development to

Re: use APC & Memcached at the same tim

2010-12-06 Thread Ma';moon
n't even have to enable apc in core config file ?? > > On Dec 3, 7:32 pm, Miles J wrote: > > Install APC and memcache. APC will run automatically and cache your > > opcode. > > > > Use memcache on the CakePHP side to cache query data.

Re: Cache does not delete on UPDATE

2010-12-05 Thread Ma';moon
0:03 pm, Bart wrote: > > It's not Cache:write() that is not behaving as expected. > > > > It's $this->Post->save() that is not behaving as expected. > > I expect it to delete all cache-files that are related to that > > particular Post. > > But it

Re: Cache does not delete on UPDATE

2010-12-05 Thread Ma';moon
. > > I expect it to delete all cache-files that are related to that > > particular Post. > > But it doesn't. > > > > On Dec 5, 9:22 pm, "Ma'moon" wrote: > > > > > If the cache file does exist && not expired then CakePHP won

Re: Cache does not delete on UPDATE

2010-12-05 Thread Ma';moon
simply expected the cache to be deleted on $this->Post->save(); > Has this changed since 1.2? > Because then the cache-file got deleted automatically on $this->Post- > >save(); > (AND when it expired, but that's a less relevant here). > > thanks for your reaction! &

Re: Memcache Set up Help

2010-12-05 Thread Ma';moon
Its very obviouse that this is a none CakePHP related issue, anyhow, i suggest giving google a try on how to install memcached on centos, the whole thing that you are facing is that memcached is not installed in your server, make sure to have it installed, make sure that the deamon is running, and

Re: Cache does not delete on UPDATE

2010-12-05 Thread Ma';moon
7;=>true), > >'Author','Attachment' > >),'Category','Attachment') ) ); >Cache::write('post_'.$id, $post); > } > $this->set(&#x

Re: Cache does not delete on UPDATE

2010-12-05 Thread Ma';moon
Are you sure that you are calling Cache::write() ? On Sun, Dec 5, 2010 at 2:28 PM, Bart wrote: > Hi, > > I'm using CakePHP 1.3.6. > I'm caching queries that retrieve single Posts in my controller. The > cache files are created nicely and I use the default Cache::config(). > Now I expect my cache

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma';moon
has different > usage, I can make them working respectively in Cake. > > But I don't know how to configure to make them working together. Do > you know how to do it? > > On Dec 3, 1:14 pm, "Ma'moon" wrote: > > APC performs (byte code caching or intermediat

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma';moon
APC performs (byte code caching or intermediate code) which means that it caches the binary form of your PHP script and once this script is being called, the cached version of the script is the one that will be executed, this will save a lot of performance and server resources, on the other hand, m

Re: Security Risks on gif image upload?

2010-12-03 Thread Ma';moon
also use imagemagick driver if you have it compiled with your PHP installation http://php.net/manual/en/book.imagick.php or you may also use GD functions to perform this task On Fri, Dec 3, 2010 at 11:26 AM, netusco wrote: > > > On Dec 3, 8:48 am, "Ma'moon" wrote: > >

Re: Security Risks on gif image upload?

2010-12-02 Thread Ma';moon
You can easily remove the threat by using an image conversion, i use `convert` to convert my images to a standard image type, the conversion process changes the physical content of the uploaded file and destroys all the threat that it might contain while maintaining the valid images if they were va

Re: Paginator Question

2010-11-15 Thread Ma';moon
age number for the link and Y is a dynamic "or static" string, there must be a way to do it, if this is not possible then i will open a ticket at CakePHP's lighthouse in order to have such a feature in Cake's paginator. On Mon, Nov 15, 2010 at 7:02 PM, cricket wrote: > On Mon,

Paginator Question

2010-11-15 Thread Ma';moon
Hello Bakers, I am using cake's paginator to paginate my views, i am actually using the folowing code to accomplish this task: $paginator->numbers(array('tag' => 'td align="center"', 'separator' => '')); My question is, how do you guys put a dynamic "ALT" for the links being generated by the pagi

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma';moon
> > So ... all the 'file shifters' seem to be doing what they're supposed > to do but that still doesn't explain the framework not recognizing > files uploaded to the server. > > Now what? > > On Oct 10, 3:13 pm, "Ma'moon" wrote: > > To ch

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma';moon
hat they're supposed > to do but that still doesn't explain the framework not recognizing > files uploaded to the server. > > Now what? > > On Oct 10, 3:13 pm, "Ma'moon" wrote: > > To check if mod-rewrite is enabled check the main page of your site

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma';moon
xist in the cakephp folder, and in the app folder > below that. > > More importantly, WHY do we need all this? Simple is better and doing > this kabuki dance of directories and filenames seems to be the source > of more heartburn than joy. > > > On Oct 10, 2:46 pm, "

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma';moon
Make sure that you have mod-rewrite enabled and also make sure that the .htaccess files does exist inside cake's folder structure. On Sun, Oct 10, 2010 at 3:42 PM, Renato de Freitas Freire < renat...@gmail.com> wrote: > what is the name of your index view file? > > i think u have named it index.p

Re: want to use database store procedure with cakephp

2010-10-01 Thread Ma';moon
I really think that the core developers should include this feature in CakePHP 2.0 since this is getting into a big demand all over the frameworks users, for example Yii is already supporting this feature and am not sure if other frameworks already supports or not but certainly for Cake this is goi

Re: Why are PHP notices still displayed when debug level is 0?

2010-09-21 Thread Ma';moon
If you are setting debug to 0 in core.php then you must have overwritten the value somewhere in your controller or model, in order to turn those notices off you may do it manually in your controller by Configure::write('debug', 0) On Tue, Sep 21, 2010 at 1:37 PM, euromark wrote: > there are no no

Re: call CakePHP stored Procedure

2010-08-24 Thread Ma';moon
You can simply accomplish that by using the `query` method located in your model, something like $this->Model->query('CALL sp_name()'); also CakePHP doesn't generate automated `Stored Procedures` but rather is generated `SQL Queries` to perform DB interaction between system layers and data storage

Re: paginator question

2010-07-24 Thread Ma';moon
I found the answer here http://stackoverflow.com/questions/2927209/cakephp-paginate-with-post-data-without-sessions-serialization-or-post-to-getincase someone faced such a setuation, and thanks a lot for the hint ADmad :-) Ma'moon On Sat, Jul 24, 2010 at 6:09 PM, Ma'moon wrote:

paginator question

2010-07-24 Thread Ma';moon
d really appreciate any help from you guys. Thanks a bunch Ma'moon Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this gr

Re: A question to core developers

2010-07-18 Thread Ma';moon
Hello Graham, Thanks a lot for your kind answer, i was pretty sure that in no way there are any globals are being passed to extract inside Cake's core, i just wanted to make sure of that in order to show it to my "paranoid" client! Thanks again. Cheers, Ma'moon On Mon, Jul

A question to core developers

2010-07-18 Thread Ma';moon
any answer. Thanks a lot Ma'moon Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-

CakePHP and prepared statements

2010-06-14 Thread Ma';moon
hankful if some can point them out. Thanks, Ma'moon Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

Re: Updating is creating new record

2010-06-12 Thread Ma';moon
Are you doing it AJAX? and what is the data type of the coolumn friends_list? On Sat, Jun 12, 2010 at 4:05 PM, WhyNotSmile wrote: > Thanks John, but saveField isn't doing the job either. > > Sharon > > > On 12 June, 18:07, John Andersen wrote: > > Can you just use $this->saveField('friend_list',

Re: email sending

2010-05-09 Thread Ma';moon
etup. >> See http://book.cakephp.org/view/176/Email for understanding of the >> Email component. >> Enjoy, >> John >> >> On May 8, 4:10 pm, "Ma'moon" wrote: >> > Yes, you need to install an MTA in order to send emails from your server &g

Re: email sending

2010-05-08 Thread Ma';moon
Yes, you need to install an MTA in order to send emails from your server On Sat, May 8, 2010 at 8:54 AM, MANOJ DHAMAL wrote: > no i not installed any MTA. Is it neccessary? > > On May 8, 5:45 pm, "Ma'moon" wrote: > > Do you have any MTA installed in your server? &g

Re: email sending

2010-05-08 Thread Ma';moon
Do you have any MTA installed in your server? On Sat, May 8, 2010 at 8:36 AM, MANOJ DHAMAL wrote: > I have to send email to user when he/she completes registration. > > i have used component in controller like > > var $components = array('Email'); > > i am using function call for sending mail li

Re: how to send email in cakephp

2010-05-08 Thread Ma';moon
A small google search will lead you to http://book.cakephp.org/view/176/Email On Sat, May 8, 2010 at 7:41 AM, MANOJ DHAMAL wrote: > How to send email for welcome message when user do login? Which > components required for it? > > Check out the new CakePHP Questions site http://cakeqs.org and help

Re: how to pass data from view to controller?

2010-04-24 Thread Ma';moon
You can name the input field with cake's convintions using a dummy DB field in order to have this input accessable in {$this->data}, once you have completed execution your process you can simply unset this field {unset( $this->data['Recipe']['dummy_field']}, or otherwise you can also use the {$this

CakePHP & Shindig

2010-03-16 Thread Ma';moon
Hello Cake Bakers :-) Am planing to build a social application using CakePHP together with apache project "Shindig", i tried to read about the integration between both CakePHP and Shindig but couldn't really find any on google nor the cook book, anyone did this before using CakePHP & Shindig? if an

Re: CakePHP 1.3-beta has landed

2010-01-17 Thread Ma';moon
Thank you very much, This is truly an amazing framework in all the terms, specially the nice community and the developers of the project, again, Thanks a million times for all the effort and time you spend to create the greatest PHP framework in the world! On Sun, Jan 17, 2010 at 12:18 PM, Miles J

Re: Create .ctp file

2009-12-09 Thread Ma';moon
http://www.google.com/search?q=create+views+cakephp On Wed, Dec 9, 2009 at 5:19 PM, 00Cake wrote: > Hi All, > > I am starting discovering CakePHP and have try to do the blog tutorial > > Here is a trivial question: > > How to create a view ? How to create a .ctp file ?? > > I have not find nothi

Re: Is Cake Certification still offered?

2009-12-09 Thread Ma';moon
+1 On Wed, Dec 9, 2009 at 4:24 PM, Marcelo Andrade wrote: > On Sun, Dec 6, 2009 at 8:55 AM, hash wrote: > > Hi guys, I want to know whether Cake Certification is still being > > offered because I want to apply as a Cake Certified Engineer. I > > emailed Cake Foundation but got no reply. > > On

Re: paginator help

2009-12-07 Thread Ma';moon
Put [$paginator->options(array('url' => $this->passedArgs));] before printing the numbers and the Next, Prev buttons, this should handle the issue. On Mon, Dec 7, 2009 at 12:25 PM, Amit Rawat wrote: > Hello , > > I am having a problem with pagination. When i post data the paginator give > me co

Re: paginate loosing args

2009-11-24 Thread Ma';moon
Please send a controller dump and your view code so we can help you On Tue, Nov 24, 2009 at 3:38 PM, Mario Cesar wrote: > *I tried too > * > > On Tue, Nov 24, 2009 at 6:36 PM, Ma'moon wrote: > >> If you are using POST to send the ID of the target article then t

Re: paginate loosing args

2009-11-24 Thread Ma';moon
If you are using POST to send the ID of the target article then try sending it using GET On Tue, Nov 24, 2009 at 3:31 PM, Mario Cesar wrote: > i tried but didn't work > > > > On Tue, Nov 24, 2009 at 6:20 PM, Dave wrote: > >> in the paginate array in your view file add >> >> 'url'=>$this->passedA

Re: Increment value using CakePHP model functions

2009-11-21 Thread Ma';moon
ًWhy you're not using *Increment Behavior* http://bakery.cakephp.org/articles/view/increment-behavior ?!! On Sat, Nov 21, 2009 at 11:52 AM, Dave wrote: > Hehe it is close to on the money. I do appreciate your help. The goal of > this question was to increment a value with 1 query. You can do

Re: how to create a new database

2009-10-31 Thread Ma';moon
http://book.cakephp.org/view/4/Beginning-With-CakePHP On Sat, Oct 31, 2009 at 2:39 AM, tassi wrote: > > hii > m a beginner > i want help > plz tell me how to create a new database > and how to connect it to mysql. > plz tell > thnx > \ > > > > -- http://phpirate.net --~--~-~--~~-

Re: Bug report: CakePHP saving twice

2009-10-20 Thread Ma';moon
You may want to open a ticket @ https://trac.cakephp.org/ stating the steps to reproduce your claims so that the core DEVs may review it and fix it. On Wed, Oct 21, 2009 at 12:32 AM, Rawna wrote: > > I just found out that CakePHP saving twice when I have warnings (as I > saw it in debug.log) > E

Re: creating layout with multiple view

2009-10-20 Thread Ma';moon
Nope, you can change the layout the way you want, all you have to do is just specifying the layout that you want in your controller, for instance, $this->layout = 'admin' then that would call the admin layout inside your app/views/layouts directory and apply all the renders in that layout, if you d

Re: creating layout with multiple view

2009-10-19 Thread Ma';moon
i don't really understand whats wrong with "elements" in your case?!!, you may "call" as many elements as you wish from within your layout and .ctp files! on the other hand you can create a separate layout for each case you have and use { $this->layout } from your controller to render the proper la

Re: Popular posts. Trying to avoid a custom query

2009-10-17 Thread Ma';moon
Why don't you simply add another column to your posts table and name it num_views or something, and increment this field by 1 every time a post is being viewed, this will save you the hassle of combining 2 models in your posts controller plus there will be no DB tables joins while you retrieve the

Re: Missing Controller

2009-09-22 Thread Ma';moon
The class name should be "ItemsController" controller NOT "ItemController" On Tue, Sep 22, 2009 at 7:58 AM, Selva manickaraja wrote: > Hi, > > I just got CakePhp up and running. To learn the functionality I created > sample php code. I followed the instruction in the book that I bought few > days

Re: Select only first 50 characters?

2009-09-21 Thread Ma';moon
Try something like: SUBSTR(Post.description,1,50) as strPart, this will work :-) "note that the string starts from 1 instead of 0" On Mon, Sep 21, 2009 at 9:16 PM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > > Changed the quotes. > > Now I end up with > > Array > ( >[title]

Re: CakePHP and scalability

2009-09-21 Thread Ma';moon
i was successfully able to handle tables with more than 200 records "yes, above 2 million records!" with CakePHP and with a very acceptable performance and speed, the first thing that you should be thinking of is sharding the database into smaller chunks "DBs", second thing is enabling "memcach

Re: View HTML caching

2009-09-07 Thread Ma';moon
Hi again, i just found it here http://bakery.cakephp.org/articles/view/html-cache-helper thanks again On Mon, Sep 7, 2009 at 3:48 PM, Ma'moon wrote: > Hello Folks, > is there any way to cache the output of the rendered view in HTML format, > the scenario suggest to cache the whol

  1   2   >