Yii Framework Forum: Full-fledged Yii demo app for learning purpose - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Full-fledged Yii demo app for learning purpose Updated with more features Rate Topic: -----

#21 User is offline   Krish Chandra 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 04-July 12

Posted 22 July 2012 - 11:50 PM

View Postrazorfish, on 22 July 2012 - 10:09 AM, said:

Well I'm trying this apps and it seems cool for a beginer like me.

When I delete an Author that has some Books, those books are deleted too.
How is this possible since actionDelete on Author model doesn't have any piece of code related with the deletion of his books?

When you delete something in the system, how the related things are handled is done at the database level. So, take a look at the foreign key relations/constraints for the tables.
0

#22 User is offline   Krish Chandra 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 04-July 12

Posted 23 July 2012 - 02:03 AM

View Postdhenet5254, on 22 July 2012 - 09:42 PM, said:

Sir why is that i try to install on my local host and created a sample author, publisher, and categories and when i try to add a book, My ISBN always invalid..


Looks like there is a problem with the regular expression that I was using for validating ISBN. I changed the code to use the one by Darren Neimke, found at www.regexlib.com and updated the GitHub repo. You can either change the isbn validator locally or get the latest version of the file from GitHub. His version of the regular expression should match: ISBN 90-70002-34-5 or ISBN 90-70002-34-x
0

#23 User is offline   raiethan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 10-February 12

Posted 23 July 2012 - 08:53 PM

View PostKrish Chandra, on 23 July 2012 - 02:03 AM, said:

Looks like there is a problem with the regular expression that I was using for validating ISBN. I changed the code to use the one by Darren Neimke, found at www.regexlib.com and updated the GitHub repo. You can either change the isbn validator locally or get the latest version of the file from GitHub. His version of the regular expression should match: ISBN 90-70002-34-5 or ISBN 90-70002-34-x

thank you master krsih.. i download and install latest version on your... and it works perfect now.. ^^
0

#24 User is offline   raiethan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 10-February 12

Posted 23 July 2012 - 08:57 PM

By the way master Krish where can i change the due date to retun the book, because the default due is 2 weeks i want 1 week or days only.. thnx in advance..
0

#25 User is offline   Krish Chandra 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 04-July 12

Posted 25 July 2012 - 11:35 PM

View Postdhenet5254, on 23 July 2012 - 08:57 PM, said:

By the way master Krish where can i change the due date to retun the book, because the default due is 2 weeks i want 1 week or days only.. thnx in advance..


Check the issueBook function in DL/protected/modules/admin/models/AdminModel.php file.
0

#26 User is offline   raiethan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 10-February 12

Posted 31 July 2012 - 09:08 PM

View PostKrish Chandra, on 25 July 2012 - 11:35 PM, said:

Check the issueBook function in DL/protected/modules/admin/models/AdminModel.php file.

thank you sir, i hope it will have an history, for example after the user borrow the books, and the user return it and the admin will click return, the user not erase in the database but go to history tab, for the reference.. is it possible?
0

#27 User is offline   swanjohn99 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 11-May 13

Posted 13 May 2013 - 10:23 AM

.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users