class ShopController extends Controller
{
public function actionCategory($slug){
//logic
return $this->render('category_template');
}
public function actionProduct($slug){
//logic
return $this->render('product_template');
}
}
$cmd = "../CronTask.php";
passthru($cmd);
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- The requested package amstr1k/yii2-category could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.