Re: try implementing schema?
Thanks for posting the schema Athies. On Jan 31, 10:21 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > You are correct. I found did exactly this and was able to use this > information to create a schema for the table-less model. Here is what > I defined in my model (for anyone who reads this later). > > var $_schema = array( > 'firstName' => array('type' => 'string', 'length' => 30), > 'lastName' => array('type' => 'string', 'length' => 30), > 'email' => array('type' => 'string', 'length' => 30), > 'msg' => array('type' => 'text') > ) > > On Jan 30, 7:07 pm, nate <[EMAIL PROTECTED]> wrote: > > > I'm guessing based on the error that you're trying to use a model > > which is not attached to a table to create the form. In one of your > > controllers, take a model that *is* attached to a table and try > > something like the following: > > > pr($this->Model->schema()); > > die(); > > > That should give you an idea on how to implement schema(). > > > On Jan 30, 6:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > I am creating a form using 1.2 beta. I got one of the memory > > > exhausted errors, and when I commented the lines out of debugger.php I > > > get this... > > > > (FormHelper::create) Unable to use model field data. If you are using > > > a model without a database table, try implementing schema() [CORE/cake/ > > > libs/view/helpers/form.php, line 124] > > > > (Model::getColumnType) Unable to locate model field data. If you are > > > using a model without a database table, try implementing schema() > > > [CORE/cake/libs/model/model.php, line 959] > > > > I have never heard of schema(). Is this something new to 1.2 beta? I > > > am guessing it is a way to use the model for validation, without a > > > real db table? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: lov.li - social network built on cake
Here's the code. good luck getting mencoder working properly, I had to ask a friend to help recompile it. Also, mencoder won't add the metadata like length to the file so you have to do that with flvtool. That way the player can show a progress bar. // convert the video to FLV $encoder = "mencoder " . $file["tmp_name"] . " -o ../webroot/img/media/videos/" . $this->Video->id . ".flv -of lavf -oac mp3lame -lavcopts vcodec=flv:vbitrate=300:cbp:mv0:mbd=2:trell:v4mv:predia=2:dia=2:last_pred=3 -vf scale=320:240,harddup -lameopts br=64 -ovc lavc -ofps 25 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames > /tmp/encoder_log"; // add flv metadata $encoder .= "; /usr/bin/flvtool2 -U ../webroot/img/media/videos/" . $this->Video->id . ".flv"; $encoder .= " 2>&1 &"; exec($encoder); // make video thumbnail $thumbnail = "mplayer -nosound -vo jpeg:quality=100:outdir=/tmp -ss 1 -vf scale=320:240 -frames 3 " . $file["tmp_name"]; exec($thumbnail); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: lov.li - social network built on cake
Sure - I use mencoder and a directory full of codecs. I used the command line options that this guy suggested: http://hedges.net/archives/2006/09/05/mencoder-magic-incantation/ and they work really well. I also use mencoder to pull a thumbnail from the video. I had to recompile mencoder with lame support for ubuntu. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: lov.li - social network built on cake
Google Analytics. It uses a javascript script on your pages so it can read all that stuff from the browser instead of relying on the web logs. it's almost scary how much it knows. And its free. Mandy wrote: How are you tracking page view - os | browsers | resolutions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: lov.li - social network built on cake
Not much yet, about a hundred uniques is my best day - although the site seems really sticky, lots of pageviews/user. This is interesting - my users are 20% mac (up from 8% on my other sites) and 50-50 IE/firefox!! probably because most of them are friends of mine. Dr. Tarique Sani wrote: What kind of traffic are you getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: lov.li - social network built on cake
Suman, I think you're right, the nifty effect is not worth the huge load time. I pulled it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
lov.li - social network built on cake
http://lov.li is online - thanks very much to the cake development team and everyone in #cakephp for your help. lov.li is a 'community art market' - like flickr for art, crafts and handmade products. The site allows blogging, groups, events, image management, video uploads with transcoding into FLV, tagging and geocoding. I'm not finished yet, but I am getting great feedback from the users. The platform is ubuntu dapper drake, php5, mysql5, and cake 1.1.12.4205 on a VPS at rimuhosting. There's no way I could have done all this in the time it took without cake - so thanks! If you have questions about anything you see on the site, or if you have feedback, please let me know. There are links to a bug and feature request system on the site. (tails, a hosted RoR bug tracking app which is nice and lightweight). And if you have anything to post on lov.li, please do! Patrick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---